SmaCCRefactoring / SmaCC

Smalltalk Compiler Compiler : a parser generator
Other
33 stars 15 forks source link

Non-Latin characters cause Grammar editor to go haywire #39

Open apblack opened 6 years ago

apblack commented 6 years ago

Putting a non-Latin character in a scanner token definition, in my case defining

<arrow>:  -> | → ;

causes the grammar editor to go haywire. The insertion point jumps around wildly and does not stay synchronized with the | cursor. Using the left and right arrow keys causes the | cursor to jump. Clicking with the mouse puts the | cursor at the mouse click, but the insertion and deletion point is at the start of the text.

This has happened repeatedly, but not every time I insert the character.

ThierryGoubier commented 6 years ago

Strange. I'm trying, and can't reproduce it.

Which version of Pharo are you using?

apblack commented 6 years ago

Version 6.1

apblack commented 6 years ago

It happened again this morning while I was doing the edits you suggested to change my return Node classes. Henrique saw it, so I know I'm not hallucinating. The only way we could fix the problem was to close the SmaCC tool and then re-open it again. But I don't know what I did to produce the problem!

We could put the cursor anywhere in the window using the mouse, but as soon as we tried to delete, or type, it bounced back to the start of the text. "Cursor down" seemed to scroll down by pages, but not to actually move the cursor.

ThierryGoubier commented 6 years ago

Really strange.