moonscript
moonscript copied to clipboard
need more descriptive errors
When running file 'test.moon' with following (incorrect) syntax:
class Thing name: "unknown"
class Person extends Thing say_name: => print "Hello, I am", @name
with Person! .name = "MoonScript" \say_name!
I get the following error:
Sergeys-MacBook-Pro:moonscript_orig sergey$ bin/moon ../moonscript/test.moon Compile error: Short-dot syntax must be called within a with block
Error does not have filename or a line number which makes it hard to find such an error in code
Missing line number is a bug, thanks for the report
filename would be awesome too. helps to easier find an error in a multi file application
Definitely, it looks like that particular error message is bypassing the regular error reporting mechanism accidentally. Normally there is file and line number, along with a preview of the line that generated the error.
Just got this today, still not fixed?
Hello, writing this to notify that this issue is still not resolved.
Still not fixed it seems. Good old-fashioned comment-out bisection helps though.