GLBasic forum

Main forum => Bug Reports => Topic started by: ampos on 2010-Sep-14

Title: Compiler error on comments inside folded SUBs
Post by: ampos on 2010-Sep-14
As I tracked the error, here is the correct bug report:

COMPILER WILL GIVE ERROR IF THERE IS COMMENTS INSIDE SUBs AND THE SUBs ARE FOLDED.
Title: Re: Compiler error on comments inside folded SUBs
Post by: Kitty Hello on 2010-Sep-15
Yes. I fixed it. Please wait for an update.
Title: Re: Compiler error on comments inside folded SUBs
Post by: ampos on 2010-Nov-10
It has come back but thus time no errors. Just blank debug window, no errors.

Can someone replicate?
Title: Re: Compiler error on comments inside folded SUBs
Post by: MrTAToad on 2010-Nov-10
I've tried both of these, and both work fine...

Are you using more comments ?

[attachment deleted by admin]
Title: Re: Compiler error on comments inside folded SUBs
Post by: ampos on 2010-Nov-11
Really I have not done deep tests... My game did compile in previous version, and now it does not compile (just a blank debug windows after pressing F5) if the only SUB I had with comments is folded.
If the SUB with the comments is FOLDed, it does not compile.

it is the same problem with the old version.

Try to put the comment after a command and have the sub folded.

Sorry, I am not at home right now.
Title: Re: Compiler error on comments inside folded SUBs
Post by: bigsofty on 2010-Nov-11
Becareful not to edit GBAS files in an external text editor, the control characters used for folding can cause no end of problems if modified by accident.

Cheers,


Ian