david-pfx / PuzzleScriptNext

A direct successor to PuzzleScript, building on the work of PuzzleScript Plus, Pattern:Script and others.
http://www.puzzlescriptnext.polyomino.com
MIT License
11 stars 4 forks source link

Crash when editing a tagged object in legend #64

Closed david-pfx closed 1 month ago

david-pfx commented 1 month ago

@clickmazes I set up yet another test-GIST in order to test it. Here goes... https://clementsparrow.github.io/Pattern-Script/src/editor.html?hack=becafe09fb9b99f9b210369e5350b5d1 https://puzzlescriptnext.polyomino.com/editor.html?hack=becafe09fb9b99f9b210369e5350b5d1 If you try to edit line 66 so it reads 5 = pix:up it's only PS> that crashes.

david-pfx commented 1 month ago

Problem caused by expanding an object containing tag parts fails to add it to the original case name version used by hints. So only P:S would have that problem.

david-pfx commented 1 month ago

Fixed by not hinting on objects defined after source code line. Not ideal, but safe.