Noob norns dev question here.
I am making changes to a library that is read in to a script with
At one point during my editing, there was an error in the script:
lua: /home/we/dust/code/toga/lib/togaarc.lua:98: attempt to call a nil value (global 'dump')
dump does not occur in the file, so that was an error. Fair enough. I fixed it, got rid of the reference to
But now whenever I run my script, I still get the same error. It is referencing the same line number which now is something different.
I even put a
print() statement at the top of the included file that prints out a number that I increment every time I edit the file. According to those print statements, the latest version of the file is being run, but I still get that error.
I took a look at the code for
/home/we/norns/lua/core/startup.lua:37 and it looks like it calls
dofile under the hood, which is supposed to not use caching.
I notice other weird things. Like, I commented out some
print() lines and added others, but I see all the lines in the repl output.
I am definitely saving my changes. I am even making the changes in
vi in an ssh session to the norns, to be sure there is not an issue with smb or maiden.
If I restart the norns, the problem goes away, but this implies that I need to restart after every change - is that the case when editing a library (not a script)?
This is how I restart my script:
Press K3 to choose
My script is already selected, I press K3 twice more to run it.
Is there something else I need to do (short of restarting after every change)?