…and hit Reload. Nothing happens. Because there’s a subtle bug in the way I imported this from the previous YAML syntax, see if you can spot it. But, more importantly, the message only appears in the JS console.
Worse yet, the message that appears is "Error evaluating script: Parse error in "… followed by the entire block of space-lua. Would it be possible to get a more specific indicator? Am I missing something?
I totally agree that the errors are impossible to decipher. I tried using silverbullet as a lite IDE with a button-to-execute to learn lua (I imagined i don’t need to leave the environment at all, which would be super cool) but I suppose it’s not quite there yet.
This is great! It’s specific to parse errors though, e.g. this will still fail silently:
```space-lua
call_nonexistent_function()
-- The following never executes
config.set {
-- Valid stuff
}
```
The log will show “Attempting to call nil as a function at [[actually_really_specific_ref@123]]” - can we perhaps render that to the document so it’s clickable?