There seems to be some bugs in the script. When I execute the script in reaper it works fine but when I execute it in repl it fails iwth
attempt to compare nil with number.
I am simply trying to execute `reaper.CountTracks(0)`
and so it should work fine, this suggests it is a script. Other code works fine.
If I copy the code I'm using in to repl:
function NumTracks()
return reaper.CountTracks(0)
end
and then call it, it works fine.
Seems like some type of parsing issue of the library I'm importing using "require".
---
Ok, what it is, is that it is not loading the new library after I save it. Could we get an update that monitors any require's for changes(file size/hash) and if it changes to reload it automatically or to even restart the repl session if necessary?
repl is great for debugging but if it can't refresh after changes without requiring it to restart, it slows things down greatly.
|