-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Wondering what the thought is behind all the non-json elements in the response files?
RESULT=FAILURE
#SECTION START: ERROR LIST
ERROR: {"filePath":"/Users/jonas/Documents/code/apex-autocomplete/bin/tmp2.cls","line":48,"column":8,"text":"mismatched input '}' expecting {'instanceof', '(', '[', ';', '.', '=', '>', '<', '?', '==', '<=', '>=', '!=', '&&', '||', '++', '--', '+', '-', '*', '/', '&', '|', '^', '%', '+=', '-=', '*=', '/=', '&=', '|=', '^=', '%=', '<<=', '>>=', '>>>='}"}
#SECTION END: ERROR LIST
It's somewhat of a pain as I have to preprocess the file to remove these lines before passing it through JSON.parse
Seems like a completely JSON structure would be more machine readable. You could include these elements in the structure if they are needed.
{
success:false,
errorList:[
{"filePath":"/src/classes/tmp.cls","line":48,"column":8,"text":"mismatched input '}' expecting {'instanceof', '(', '[', ';', '.', '=', '>', '<', '?', '==', '<=', '>=', '!=', '&&', '||', '++', '--', '+', '-', '*', '/', '&', '|', '^', '%', '+=', '-=', '*=', '/=', '&=', '|=', '^=', '%=', '<<=', '>>=', '>>>='}"}
]
}
Metadata
Metadata
Assignees
Labels
No labels