Display correct stack trace on SyntaxError
I'm getting this syntax error that appears as tho it came from gjs.
The settings of extension tl-time-tracker@mwidmann.tweaklab.org had an error:
SyntaxError: unexpected token: ':'
Stack trace:
compileModule@resource:///org/gnome/gjs/modules/internal/loader.js:148:31 resolveModule@resource:///org/gnome/gjs/modules/internal/loader.js:186:35 moduleResolveHook@resource:///org/gnome/gjs/modules/internal/loader.js:339:29 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
https://gitlab.gnome.org/GNOME/gjs/-/blob/master/modules/internal/loader.js?ref_type=heads#L148
My editor finds no syntax errors in any of my code.
https://github.com/moritz-t-w/TL_Time_Tracker/tree/mvp
Upon further inspection it seems that maybe that script raised a SyntaxError when trying to compile my script. I should be able to expect to be told where the syntax error originated tho because this is no help and just makes it look like there's a syntax error in an internal gjs module.