Author Topic: Folding Bug in C::B  (Read 4485 times)

Offline stanley82521

  • Single posting newcomer
  • *
  • Posts: 3
Folding Bug in C::B
« on: June 11, 2013, 06:02:28 am »
The code folding function doesn't work when the file is newly created in C::B.
It only works when opening an existing file.
For example, click "File >> New >> Empty file" and type some code, the folding icon and lines don't appear in the left gutter.

Test under Windows 7, 12.11 official release and my own build from SVN trunk (revision 9130 with wxMSW 2.8.12, MinGW GCC 4.8.1 on Windows, 32-bit build). This problem also appears in the Linux 12.11  release (wxWidgets 2.8.12, GCC 4.7.2 on Linux, 64-bit build from Manjaro repo).

Create a new file and input some code, no folding icons  :( :
http://i.imgur.com/jMbbWEl.png

Close the file and open again. This time it works as expect:
http://i.imgur.com/HS5p8MA.png
« Last Edit: December 22, 2013, 04:55:43 pm by stanley82521 »

Offline stanley82521

  • Single posting newcomer
  • *
  • Posts: 3
Re: Folding Bug in C::B and x64 build question
« Reply #1 on: June 13, 2013, 07:38:30 pm »
Nobody want to reply me...
Isn't it a bug? Is it a feature or so?  ???
Or... just because I post this article at wrong place?

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 202
Re: Folding Bug in C::B and x64 build question
« Reply #2 on: June 13, 2013, 07:59:17 pm »
Quote
The code folding function doesn't work when the file is newly created in C::B.
It is a bug.
« Last Edit: June 13, 2013, 08:04:36 pm by danselmi »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9529
Re: Folding Bug in C::B and x64 build question
« Reply #3 on: December 22, 2013, 05:29:22 pm »
It is a bug.
...fixed in SVN head. Thanks for the report!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ