We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SB-Prime variable intellisense
#15
Excellent instructions I can reproduce!

This actually looks like a bug/feature in the Scintilla lexer (external dll I use) combined with my logic.

1] I only add a variable when the lexer is checking a line that is not the current.
2] The Scintilla lexer sends an event message whenever a line needs to be checked.

So if Scintilla lexer sends messages for parsing when I am on the line, I ignore it for variables becuase they could be being changed or part way through writng the name.
The Scintilla lexer however does not send a message if you just move the mouse away from a line rather than send a key.
So if you just move away and type, then this variable has not been tested for and not added to the list of variables.

This doesn't happen for me usually because I use a return key at the end of lines I write, and don't actually use the intellisense much.

Only way I can see to fix is to relax my rule about not considering variables on the current line - but this could result in lots of unnecessay variables added.
[-] The following 1 user Likes litdev's post:
  • AbsoluteBeginner
Reply


Messages In This Thread
RE: SB-Prime variable intellisense - by litdev - 04-26-2024, 08:30 AM
RE: SB-Prime variable intellisense - by Scout - 04-26-2024, 09:45 AM
RE: SB-Prime variable intellisense - by Scout - 04-26-2024, 09:48 AM
RE: SB-Prime variable intellisense - by z-s - 04-26-2024, 10:34 AM
RE: SB-Prime variable intellisense - by litdev - 04-26-2024, 11:16 AM
RE: SB-Prime variable intellisense - by Scout - 04-26-2024, 01:21 PM
RE: SB-Prime variable intellisense - by litdev - 04-26-2024, 04:01 PM
RE: SB-Prime variable intellisense - by Scout - 04-26-2024, 04:36 PM
RE: SB-Prime variable intellisense - by litdev - 04-26-2024, 05:14 PM
RE: SB-Prime variable intellisense - by litdev - 04-26-2024, 06:11 PM
RE: SB-Prime variable intellisense - by Scout - 04-26-2024, 07:51 PM
RE: SB-Prime variable intellisense - by litdev - 04-26-2024, 07:55 PM
RE: SB-Prime variable intellisense - by Scout - 04-26-2024, 08:36 PM
RE: SB-Prime variable intellisense - by litdev - 04-26-2024, 08:41 PM
RE: SB-Prime variable intellisense - by z-s - 04-28-2024, 03:00 PM
RE: SB-Prime Bugs And Error - by litdev - 04-25-2024, 09:32 PM
RE: SB-Prime Bugs And Error - by AbsoluteBeginner - 04-26-2024, 05:06 AM
RE: SB-Prime Bugs And Error - by z-s - 04-26-2024, 07:28 AM

Forum Jump:


Users browsing this thread: 18 Guest(s)