You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this has come up a few times in conversation but i don't think there's an issue tracking. anyway, user trickyflemming on lines was snagged when overwriting metro:
I was finally bitten by the globals last night. I was working on a script and I created an array called metro. Hoo boy, norns did not like that. The error text was not useful so it took a bit of hunting to figure out what happened. I had to replace the offending variable, resave the script, and then reboot norns to fix it.
and suggested
One quick solution for the globals issue would be to add the globals to matron’s syntax highlighting. They could be a bright red to quickly show that they are not available variable names.
Currently, maiden has a red "X" that appears (almost too frequently!) on lines with errors or incomplete statements.
A yellow "!" would be useful on lines that contain redeclarations of or assignments to global variables. Mousing over this would provide a warning message that the variable exists as a global and that this could provide unexpected behavior.
A yellow "!" would be useful on lines that contain redeclarations of or assignments to global variables.
👍
also maybe promising is to draw attention to the global functions you have (rightly) redefined because they serve as norns callbacks (, e..g., enc, gridkey, etc.) . in my head this is sort of like how "overrides" are decorated in the gutter of some editors, for example Java in IDEA:
pq
changed the title
indentify (highlight/annotate) globals in the editor
identify (highlight/annotate) globals in the editor
Jul 12, 2018
this has come up a few times in conversation but i don't think there's an issue tracking. anyway, user trickyflemming on lines was snagged when overwriting
metro
:and suggested
👍
see also: monome/norns#426 and monome/norns#425
The text was updated successfully, but these errors were encountered: