GLBasic forum

Main forum => Bug Reports => Topic started by: AlienMenace on 2011-Mar-16

Title: GLBasic just does not compile.. no errors, no nothing.
Post by: AlienMenace on 2011-Mar-16
I have a project that has been compiling fine. I just ran it but now GLBasic refuses to compile and run. It shows "precompiling..." then just stops. No errors, no nothing. I didn't make any changes since the last time I compiled and ran my project. Any idea what is going on? I have tried to reload the project, close the editor, etc. Nothing. This kind of thing is very frustrating.
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: AlienMenace on 2011-Mar-16
So I load up the main source file into a text editor and lo and behold there are strange characters after some of the lines. It looks like a solid vertical block with a solid white circle in the middle (I'm wondering if this is some sort of folded code identifier or something?).  I go about removing all of these then save it out as plain text. Then I load it back up in GLB and now that area of code it nackered up as a continuous line of code with no crlf and a solid block at the end of each command. So I remove these blocks and reformat my code. It will now run and compile but will now occasionally crash which it never did previous to this event.

Man oh man... what is up with that?
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: Kitty Hello on 2011-Mar-16
can you attach the project?
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: ampos on 2011-Mar-16
Try to unfold the SUB/FUNCTIONS.

In my codes, some SUB/FUNCTIONs are evils, and if they are folded, the compiler does not compile, just a blank debug window.
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: Kitty Hello on 2011-Mar-16
Send me these files, please. I'll have to fix that then.
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: ampos on 2011-Mar-16
Quote from: Kitty Hello on 2011-Mar-16
Send me these files, please. I'll have to fix that then.

are you talking to me?
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: Kitty Hello on 2011-Mar-16
Yes XD.
If you have a file with folded code that does not compile, please send it to me.
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: MrTAToad on 2011-Mar-16
AlienMenace should sent the complete project too - it looks like some files are corrupt...
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: AlienMenace on 2011-Mar-21
For what it's worth, I've had some strange behavior with folding code in general. I believe the part of my code that went screwy was folded. I like to fold all of my functions and have a blank line between them for code cleanliness reasons. Sometimes GLB will decide to unfold my functions on it's own and it also likes to remove that blank line I put in at random. I've had to add it back in fairly often. I've stopped using function folding for now, I love the idea but I don't trust it at the moment.
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: ampos on 2011-Mar-21
Quote from: AlienMenace on 2011-Mar-21
For what it's worth, I've had some strange behavior with folding code in general. I believe the part of my code that went screwy was folded. I like to fold all of my functions and have a blank line between them for code cleanliness reasons. Sometimes GLB will decide to unfold my functions on it's own and it also likes to remove that blank line I put in at random. I've had to add it back in fairly often. I've stopped using function folding for now, I love the idea but I don't trust it at the moment.

+1

It removes the separations, and it ended joining ENDSUB with the next sub, ENDSUBSUB name:

I am amazed no one else has this problem...
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: Moru on 2011-Mar-21
Most editors I have tried with code-folding has crached up on me when using folding. On the Atari it even caused bombings so you had to reset the machine. I never use code folding any more :-)
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: ampos on 2011-Mar-21
I loved the F9 fold/unfold in AMos Basic. BB3d/IDEal also had fold/unfold and it never crash (for me!)
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: AlienMenace on 2011-Mar-21
Quote from: ampos on 2011-Mar-21
+1

It removes the separations, and it ended joining ENDSUB with the next sub, ENDSUBSUB name:

I am amazed no one else has this problem...

Yep, that very thing happens to me too. I was really into AMOS back in the day, spent hundreds of hours with my trusty old A500, DPaint and AMOS. :)
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: Ian Price on 2011-Mar-21
I started with EasyAMOS, then moved to AMOS Professional. I spent many a happy hour with those :)
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: XanthorXIII on 2011-May-11
Same thing just happened to me. However I unfolded and it's now compiling correctly for me again.
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: erico on 2011-May-11
Quote from: ampos on 2011-Mar-21
I loved the F9 fold/unfold in AMos Basic. BB3d/IDEal also had fold/unfold and it never crash (for me!)

me too(amos pro)!
What I have coded so far in glbasic had no problem folding/unfolding.
Title: Re: GLBasic just does not compile.. no errors, no nothing.
Post by: ampos on 2011-May-11
Quote from: erico on 2011-May-11
Quote from: ampos on 2011-Mar-21
I loved the F9 fold/unfold in AMos Basic. BB3d/IDEal also had fold/unfold and it never crash (for me!)

me too(amos pro)!
What I have coded so far in glbasic had no problem folding/unfolding.

You have to have comments inside. I have not tested if the //coments on a single line had error, or just if you added the //comment after a sentence (as I do)