My function node shows an error (red triangle) with a tooltip:
Invalid Properties
-noerr
I've seen a similar issue with an IE browser, but I'm using the latest Chrome on Windows and this will NOT go away even though there are no errors or warnings in the editor itself.
I've managed to narrow this down to a missing closing brace }
for a conditional inside a function
defined in the function node's code ... however the editor didn't show any issues with that so maybe you can improve the visual indicator for any such unpaired braces so other users don't struggle with this weird -noerr
issue
One annoying thing that I found in the editor is a warning about a misplaced ?
in the following code:
return condition
? 'true'
: 'false';
It insists that the ?
must be on the same line as the return statement or condition, which is completely incomprehensible when I look at
return condition ?
'true' :
'false';
(my code is actually much longer, condition is complex and the two statements are also longer so both the ?
and :
get lost at the end of long lines!
Also, when I switched the editor tabs from Function to either Setup or Close then hit Done, my Chrome DevTools stopped with a JavaScript error (no error if I leave it with the Function tab active when hitting Done):
TypeError: Cannot read property 'getTokens' of null
this is in getTokens() called from:
$renderLine()
$renderChanges
_flush()
schedule()
setAnnotations()
onChangeAnnotation()
r._signal()
setAnnotations()
clearAnnotations()
-
(anonymous)
- insideace.define("ace/mode/nrjavascript", [], ...)
r._signal()
terminate()
$stopWorker()
destroy()
destroy()
disposeEditor()
oneditsave()
click()
- ...