You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current error messages that come from parser are not very friendly to be used in editors.
An improvement that would help with the usage of jqlang in editors (like Monaco) would be to specify line and column properly for the syntax issue such that a tool could be used to highlight the syntax issue while typing. (In monaco editor, we don't have any means of getting line and number for a syntax error). Another improvement would be to format the message in a more human readable format.
Example for parsing an expression:
./jq ".map]"
jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Unix shell quoting issues?) at , line 1:
.map]
Suggestion:
jq: syntax error at line 0, column 4: Found INVALID_CHARACTER where it was not expected. Expected end of file. This might be due to Unix shell quoting issues. at , line 1:
.map]
The text was updated successfully, but these errors were encountered:
Current error messages that come from parser are not very friendly to be used in editors.
An improvement that would help with the usage of jqlang in editors (like Monaco) would be to specify line and column properly for the syntax issue such that a tool could be used to highlight the syntax issue while typing. (In monaco editor, we don't have any means of getting line and number for a syntax error). Another improvement would be to format the message in a more human readable format.
Example for parsing an expression:
./jq ".map]"
jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Unix shell quoting issues?) at , line 1:
.map]
Suggestion:
jq: syntax error at line 0, column 4: Found INVALID_CHARACTER where it was not expected. Expected end of file. This might be due to Unix shell quoting issues. at , line 1:
.map]
The text was updated successfully, but these errors were encountered: