Villavu / Simba

Simba is a program used to repeat certain (complicated) tasks. Typically these tasks involve using the mouse and keyboard. Simba is programmable, which means you can design your own logic and steps that Simba will follow, based upon certain input such as colors on the screen.
http://villavu.github.io/Simba/
GNU General Public License v3.0
220 stars 76 forks source link

TAutoCompleteListBox error #229

Closed riwu closed 10 years ago

riwu commented 11 years ago

Procedure Pointer.Inc(Size: Int64); Begin Self := Self + Size; End;

Typing Alt + Enter, then 'in', then backspace results in an exception in Simba:

Program exception! Stacktrace:

Exception class: Exception Message: TAutoCompleteListBox Index 216 out of bounds 0 .. 0 $00566F4C $00567DE2 $0061BB9B $005FD65C $005D0B5C $004962CE $00634B57 $005C12C0 $00540A76 $00540D23 $00543409 $0040C3C6 $0053FDCF $005C82AA $005061FE $76BF62FA $76BF6D3A Simba Version: 1000

MerlijnWajer commented 11 years ago

@JohnPeel Any comments?

JohnPeel commented 11 years ago

I can't get it to crash on me.

riwu commented 11 years ago

Hmm maybe there's something more in ggzz's GLXCore. The function list shows a lot of Inc (http://puu.sh/4g60J.png) but all directs to only one. Try get ggzz's OGL include then {$include_once GLX/Setup.Simba} then type Alt+Enter, 'inc', then backspace all the way.

JohnPeel commented 11 years ago

Ask ggzz to use {$IFNDEF CODEINSIGHT} to hide internal and type methods.

JohnPeel commented 11 years ago

Our parser doesn't like the weird type methods Lape uses. I might have to get niels to at least write in support for having method decelerations in the type declaration.

Brandon-T commented 11 years ago

Can't replicate this error :S Tried 3 different Simba's. There is only 1 "inc" in the include and that's the only one that shows up in the auto-complete and in the function list.

Alt + Enter doesn't do anything. Ctrl+Space is how you bring up auto-complete. Alt + Enter + In + Backspace all the way does nothing either.

I'm using this Simba atm: http://nala.villavu.com/downloads/master/e7a716d82b900f666369999da34bb265921be760/

Adding {$IFNDEF CODEINSIGHT} hides all auto-complete/function-list.

JohnPeel commented 11 years ago

Needs to be an older one, as I have a temp fix for multi-including files in the latest Simbas.

riwu commented 11 years ago

Oh yes Ctrl + Space is what i meant to say...why was i saying something completely different.... Im using http://villavu.com/forum/showthread.php?t=103871, probably should switch to the latest version then.