https://bugs.kde.org/show_bug.cgi?id=427050

--- Comment #6 from kdbase-kde...@yahoo.com ---
I have reproduced the problem.  I'll explain how here, and then I'll explain
how it happened to me.

1. Create a new directory, for example 'test'.

2. Copy the file 'junk.cpp' into the directory.  I just tried uploading the
file as an attachment, but I'm not sure it uploaded it correctly.  Since the
file is short, I'll place the contents here:

---------------------------------------------------------------
// Sample file

#include <iostream>

struct junk {
  long a;
  double b;
  junk() {
    a = 2;
    b = 3.5;
  }
  void out() const {
    std::cout << "a = " << a << ", b = " << b << '\n';
  }
};

int main()
{
  junk j0;
  j0.out();
  j0.b *= 3;
  j0.out();
  return 0;
}
---------------------------------------------------------------

3. Open kdevelop.  From the menu bar, choose 'New from Template...' under
'Project'.  Choose 'Standard' Category, 'Empty' Project Type.  You can probably
place the project anywhere, but I chose to place it in the test/ directory.  I
named the project 'ex'.

4. Open the newly created project 'ex'.  It contains no files.  Using the 'File
System' tab on the left, or maybe using the 'File' menu, open the file
'junk.cpp'.

5. This re-creates the problem.  The junk.cpp file is in the editor.  If you
click on the Classes tab, the junk struct is not present.  Within the editor,
however, you can access the information about variables and objects.  For
example, you can hover over the 'out' on line 20, or the 'b' on line 21.  At
least, this is the behavior I observe.


How did this happen to me?  In my case, I had an existing project that used
meson.  At first, as Francis guessed, kdevelop did not support meson.  When it
was added later, I couldn't figure out how to use it, although I didn't try
very hard.  There was (and is, I think) no template to create a new meson
project, so I chose the Empty Project Type and added the source files
afterwards.

I hope this is clear.  Please let me know if you have questions.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to