BUG in classparser?

Oliver Eichler oliver.eichler at gmx.de
Tue Jan 25 20:50:23 GMT 2000


Hi

I reported  a bug in the class tree to sourcefile mapping a few days
ago. It is still there, but I narrowed it down. Maybe it helps.

The situation:
I started the project with Kdevelop 1.0 stable
I updated to snapshot20000108. Everything ok.
I updated to snapshot20000119. The bug occured. 
I updated to snapshot20000124. The bug is still there.

What happens?
As my application is based on dialogs, I noticed that changes in
the dialog file aren't written to the source file. The first change is
ok. A second one will not be made within the source files. After
restarting Kdevelop again the first change session is taken over - the
second one is not. First I thought the latest changes to the dialog
editor screw it up. However if I start Kdevelop and click on a member
function the cursor is positioned correctly. If I insert an empty line
and compile the curser is missplaced by one line for all following
member functions. If I enter a second line the missplacement will be
two lines and so on. No wonder the dialog editor is refusing to edit
code it can't locate correctly. It looks like Kdevelop is not
recalculating the positions of member functions upon compilation, is it?

There is another annoying bug. The dialog editor will create two
sourcefiles. One for the class itself the other one for the init
function. Nothing wrong with that, however adding a member function to
the dialog class will create a function implementation into the auto
created init function source file! As this file is marked as not
editable I have to copy-n-paste the created function into the correct
sourcefile all the time.  

Hope this helps

oliver




More information about the KDevelop mailing list