Berserk-Games / atom-tabletopsimulator-lua

Tabletop Simulator scripting package for Atom.
Other
36 stars 27 forks source link

Better require() error handling and fixed support of != syntax #108

Closed Benjamin-Dobell closed 4 years ago

Benjamin-Dobell commented 4 years ago

Updated moonsharp-luaparse, which now supports additional MoonSharp specific syntax:

The latter of which is a MoonSharp extension that only works for userdata so is only useful if at some point Berserk want to take advantage of the syntax.

Additionally, luabundle has been updated and now includes custom errors (rather than just textual errors). Thus if something goes wrong during bundling/unbundling we can tell which module had the problem and the underlying cause. As a result, we now have special case handling for Lua syntax errors that are encountered during bundling. In which case we bring up a notification explaining that there's a syntax error and have a "Jump to Error" button e.g.

Screen Shot 2020-02-20 at 4 55 57 am