Bug #13750 2008-05-05 13:40

jrenggli

Editor adds lines but does not display them

I just upgraded Code::Blocks to build 5027 from 4th of May (Ubuntu package from jenslody repository).

Now every time I edit a file, lines of code seem to be appended to it, without the editor to display them or me requesting for those lines to be added.

Dummy example. File asdf.cpp was

///////////////////////////////

#ifndef ASDF

#define ASDF

foo()

{

...

bar();

}

#endif ASDF

///////////////////////////////

Now I just remove the line where I make the call to bar(), and the code seems to be correct in the editor. But if I read my file from outside (less), I see

///////////////////////////////

#ifndef ASDF

#define ASDF

foo()

{

...

}

#endif ASDF

}

#endif ASDF

///////////////////////////////

or similar. This is really annoying since any single change made inside the editor makes the compilation fail.

Category
Application::Editor
Group
 
Status
Open
Close date
 
Assigned to
 
jrenggli 2008-05-05 15:38

From what I just tested, the only case when this happens is when I delete something.

Actually, I would even tend to say it happens only when deleting a tab ('\t') from the source file. But I haven't done enough tests to be sure of that.

I haven't tried to read the source code yet, but I'd say the culprit is somewhere in the automatic identation, maybe scintilla ? (sorry, I don't know much about the internals of Code::Blocks yet; What I can say is that except for this bug, it's a great IDE !)

ID_45642 2008-05-05 20:05

I notice this too. I got Code::Blocks 5027 form deb repository.

ID_45642 2008-05-08 06:51

When This bug will by fix? This is really annoying bug