GLBasic just does not compile.. no errors, no nothing.

Previous topic - Next topic

AlienMenace

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.
Apps published: 3

AlienMenace

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?
Apps published: 3

Kitty Hello


ampos

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.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Kitty Hello

Send me these files, please. I'll have to fix that then.

ampos

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?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Kitty Hello

Yes XD.
If you have a file with folded code that does not compile, please send it to me.

MrTAToad

AlienMenace should sent the complete project too - it looks like some files are corrupt...

AlienMenace

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.
Apps published: 3

ampos

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...
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Moru

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 :-)

ampos

I loved the F9 fold/unfold in AMos Basic. BB3d/IDEal also had fold/unfold and it never crash (for me!)
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

AlienMenace

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. :)
Apps published: 3

Ian Price

I started with EasyAMOS, then moved to AMOS Professional. I spent many a happy hour with those :)
I came. I saw. I played.

XanthorXIII

Same thing just happened to me. However I unfolded and it's now compiling correctly for me again.
Owlcat has wise