Open apblack opened 7 years ago
The compiler does in fact make suggestions in this case. It says:
abs_issue.grace[7:8-10]: Syntax error: unknown variable or method 'abs'; this may be a spelling mistake, or an attempt to access a variable or method in another scope
6:
7: print (abs -2)
------------^^^
Did you mean:
7: print (hash
Did you mean:
7: print (self
Did you mean:
7: print (List
Did you mean:
7: print (abs(_)
The problem is that the IDE throws away all but the first line of the error message.
Perhaps the simplest fix is to incorporate the suggestions into the single line error message, when running in the browser.
Code like
will produce a static error like this
The message should include the phrase
did you mean abs(_)?