Posts: 63
Threads: 9
Likes Received:
41 in 28 posts
Likes Given: 26
Joined: Sep 2023
Reputation:
9
The behavior of the variable history should have been just a comment and is to be expected.
I can no longer reproduce the lack of "Text" and "Textwindow".
It only happened once when setting the language version in the IDE for the first time and then restarting SB-Prime.
Now I can set and delete the language version and restart and everything is fine.
Posts: 451
Threads: 34
Likes Received:
359 in 246 posts
Likes Given: 178
Joined: Aug 2023
Reputation:
17
04-26-2024, 04:01 PM
(This post was last modified: 04-26-2024, 04:41 PM by litdev.)
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.
Posts: 63
Threads: 9
Likes Received:
41 in 28 posts
Likes Given: 26
Joined: Sep 2023
Reputation:
9
04-26-2024, 04:36 PM
(This post was last modified: 04-26-2024, 04:48 PM by Scout.)
If the line b=4 is completed with "Enter", b appears in the list.
If only the mouse pointer is placed in the last line, b does not appear in the list!
Line b=4 is not recognized as complete.
If one of the unrecognized variables is subsequently completed with ENTER, all variables are updated
Posts: 451
Threads: 34
Likes Received:
359 in 246 posts
Likes Given: 178
Joined: Aug 2023
Reputation:
17
Good idea - I added it into the Format command - right click context menu and interface button.