Page 1 of 2

[BUG] Incorrect Folding Marking in C files

Posted: Wed Jul 23, 2008 6:44 am
by hbr_in
Hi,

1st Kindly look at the attachment.

1. The Folder starts at the correct place but while it should end at the matching brace it goes further & covers even the blank line & goes till next func or comment or declarations.

2. Folding Doesnt Apply for #if defines

3. Look at the last function Main. Folding ends at a line before the closing brace. And if i hit a newline at the end of the file then i get the brace properly.



TIA

Regards
Gururaja

Re: [BUG] Incorrect Folding Marking in C files

Posted: Wed Jul 23, 2008 7:06 am
by hbr_in
This happens even for comments /* */

Regards
Gururaja

Re: [BUG] Incorrect Folding Marking in C files

Posted: Wed Jul 23, 2008 9:36 am
by eranif
Hi,

- Unfortunately I cant do anything to fix this since this is a bug in the editor component (Scintilla), thsis bug will happen in every Scintilla's based editor (e.g. SciTE, Notepad++, Komodo, codeblocks etc.)

- I see that you are using version 1.0 which is stable, however, I strongly recommend that you upgrade to next version - which is highly stable (at least like v1.0)


Eran

Re: [BUG] Incorrect Folding Marking in C files

Posted: Wed Jul 23, 2008 12:43 pm
by hbr_in
Hi

>>Unfortunately I cant do anything to fix this since this is a bug in the editor component (Scintilla), thsis bug will happen in every Scintilla's based editor (e.g. SciTE, Notepad++, Komodo, codeblocks etc.)

I also use n++ but i dont see/get this issue. No issues with #if defines,, doesnt include empty lines,

Whats the version of scintilla that is included.

TIA

Regards
Gururaja

Re: [BUG] Incorrect Folding Marking in C files

Posted: Wed Jul 23, 2008 1:25 pm
by eranif
hbr_in wrote:I also use n++ but i dont see/get this issue. No issues with #if defines,, doesnt include empty lines,
I was not talking about the #if/ #endif folding, this is disabled in CodeLite - to turn it on, it is only a matter of adding one line to the code.

I was referring to EOL does not collapse as it should - my guess is that we are using different versions of Scintilla

Eran

Re: [BUG] Incorrect Folding Marking in C files

Posted: Wed Jul 23, 2008 2:22 pm
by hbr_in
Hi,

The SciLexer.dll file inside n++ directory says

File Version : 1.7.5.0
Description : Scintilla.DLL - a Source Editing Component

How about Yours.

Regards
Gururaja

Re: [BUG] Incorrect Folding Marking in C files

Posted: Wed Jul 23, 2008 2:37 pm
by eranif
CodeLite does not uses SciLexer.dll - but it is rather static linked against the executable.

If I am not mistaken, the wrapper for Scintilla (which is called wxScintilla) is linked against version 1.7.1

Eran

Re: [BUG] Incorrect Folding Marking in C files

Posted: Thu Jul 24, 2008 7:21 am
by hbr_in
Hi,

Kindly can u provide code folding for #if defines & code within the #if defines.

Regards
Gururaja

Re: [BUG] Incorrect Folding Marking in C files

Posted: Mon Aug 18, 2008 4:11 am
by hbr_in
Hi,

My one more cent to improve codelite.

I checked code-blocks and found that the wxWidgets for MSW dll/library it uses has FiLe version number : wxWidgets Library 2.8.8
The one that codlite uses is wxWidgets Library 2.8.7
This is for my clarification.

Is it possible to update Scintilla component of codelite to improve various new fatures/bug fixes it incorporates.
Feature requested here https://sourceforge.net/tracker/index.p ... tid=979963

TIA

Regards
Gururaja

Re: [BUG] Incorrect Folding Marking in C files

Posted: Thu Aug 21, 2008 5:22 am
by hbr_in
Hi,

Just Downloaded Codelite SVN Build Rev 2013. Felt really happy to see many new features being added. Thanks for all your efforts. Thanks for providing the Features i have request.

But the below bug Still exists. This is just for your info.

1. The Folder starts at the correct place but while it should end at the matching brace it goes further & covers even the blank line & goes till next func or comment or declarations.

Find attached the below file that i used for testing.

Oops While attaching the C file it says "The extension c is not allowed."
Its not allowing me to upload any files. tried renaming it to .txt, .jpg & even without attachment. but it failed.
What to do. can i paste the c code directly.

TIA

Regards
Gururaja