[BUG] Incorrect Folding Marking in C files

General questions regarding the usage of CodeLite
hbr_in
CodeLite Expert
Posts: 113
Joined: Fri Jul 11, 2008 9:12 am
Contact:

[BUG] Incorrect Folding Marking in C files

Post 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
You do not have the required permissions to view the files attached to this post.
hbr_in
CodeLite Expert
Posts: 113
Joined: Fri Jul 11, 2008 9:12 am
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post by hbr_in »

This happens even for comments /* */

Regards
Gururaja
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post 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
Make sure you have read the HOW TO POST thread
hbr_in
CodeLite Expert
Posts: 113
Joined: Fri Jul 11, 2008 9:12 am
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post 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
Make sure you have read the HOW TO POST thread
hbr_in
CodeLite Expert
Posts: 113
Joined: Fri Jul 11, 2008 9:12 am
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post 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
Make sure you have read the HOW TO POST thread
hbr_in
CodeLite Expert
Posts: 113
Joined: Fri Jul 11, 2008 9:12 am
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post by hbr_in »

Hi,

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

Regards
Gururaja
hbr_in
CodeLite Expert
Posts: 113
Joined: Fri Jul 11, 2008 9:12 am
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post 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
hbr_in
CodeLite Expert
Posts: 113
Joined: Fri Jul 11, 2008 9:12 am
Contact:

Re: [BUG] Incorrect Folding Marking in C files

Post 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
Post Reply