GLBasic forum

Main forum => Bug Reports => Topic started by: ampos on 2010-Oct-05

Title: IDE errors on 8.120
Post by: ampos on 2010-Oct-05
On new IDE, all my SUBs are a mess in right LIST window. Look at note 1 on the screen.

Also, the game did not compile. Just a white zone on the OUTPUT window.

Note 2 on screen: if you left no-space between SUBs or // and folf/unfold, the line after the ENDSUB will be located right after the ENDSUB command. If you keep folding/unfolding, again the next line will be added to the end of previous one, and you will get the same result as NOTE 3 on my screen capt.
Title: Re: IDE errors on 8.120
Post by: Kitty Hello on 2010-Oct-05
Check your TYPE definitions. They seem broken, too?
Title: Re: IDE errors on 8.120
Post by: ampos on 2010-Oct-05
The mess on Jump list on right side are only in new IDE.

The fold/unfold bug is in last and previous GLB version.

My type definition is as follow at the beginning of the source:

Code (glbasic) Select
TYPE Mouse;x;y;b1;b2;bl;ENDTYPE
GLOBAL mouse AS Mouse, fps%
TYPE casillas;x;y;tipo;explo;delay;vida;anim#;ENDTYPE


If I change the code to

Code (glbasic) Select
TYPE Mouse;x;y;b1;b2;bl;ENDTYPE
GLOBAL mouse AS Mouse, fps%
TYPE casillas;x;y;tipo;explo;delay;vida;anim#
ENDTYPE


The jump list just is fine.  :good:

It doesnt matter if your program is made "silly proff", silly people is very creative

Will test later if the fold/unfold bug is still there and how to replicate exactly.

BTW, are types definition a must on the beginning of the main file, or can be defined any place? I tried a "gosub definetypes" and it didnt work (I hate to have the beginning of my source full of declarations...)
Title: Re: IDE errors on 8.120
Post by: Kitty Hello on 2010-Oct-05
You can define types anywhere. Also in another file.
Title: Re: IDE errors on 8.120
Post by: MrTAToad on 2010-Oct-05
Its odd - I dont get types listed in the Jumps list.  I do get functions in types though, which is good...

New SUB's are put in at the current cursor position, and not at the end of the file.
Title: Re: IDE errors on 8.120
Post by: ampos on 2010-Oct-05
No, the listed thing was my SUBs, but the type def (compressed mode  :S) was making the bug.
Title: Re: IDE errors on 8.120
Post by: MrTAToad on 2010-Oct-05
I get strange characters with functions in types now :)