[Gambas-user] Issue 133 in gambas: Folding fails on empty class file
gambas at ...2524...
gambas at ...2524...
Mon Oct 24 05:48:52 CEST 2011
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 133 by adamn... at ...626...: Folding fails on empty class file
http://code.google.com/p/gambas/issues/detail?id=133
1) Describe the problem.
(This is pretty minor, but it took me some time to find out what was
happening. The problem occurred for me when converting a gb2 project that
contained an empty class file.)
At line 2359 in the IDE FEditor class (the Reload sub), the CollapseAll
call crashes the IDE on an empty file.
2358 If Not Project.RestoringFiles Then
2359 If Settings["/Editor/Fold"] Then edtEditor.CollapseAll
2360 Endif
This is essentially similar to Issue 105, but it (theoretically) should not
arise through normal use - however, converting a gb2 project that does
contain an empty class fails without warning.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK (latest)
Revision: 4120
Operating system: Linux
Distribution: Ubuntu / Fedora / ArchLinux / Gentoo ...
Architecture: x86
GUI component: GTK+
Desktop used: LXDE
3) Provide a little project that reproduces the bug or the crash.
N/A
4) If your project needs a database, try to provide it, or part of it.
N/A
5) Explain clearly how to reproduce the bug or the crash.
Create an empty file in a project, say xxx.class using an external editor
Start the IDE
Turn on automatic code folding.
Open the xxx.class file.
==> IDE Crashes.
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
More information about the User
mailing list