AtomLinter / linter-jsonlint

Atom linter plugin for JSON, using jsonlint.
23 stars 6 forks source link

JSON formatting does not show errors. #74

Open krishnaghatti opened 7 years ago

krishnaghatti commented 7 years ago

I am using linter-jsonlint along with atom editor version 1.15.0. For some reason I am unable to see the syntax errors as showing in the screenshot. For instance when I open the following snippet : { "server": "internal.amazonaws.com", "jmx_monitor_services": [ "service1" "service2" ] "service1": { "jmx_port": "9003" }, "service2": { "jmx_port": "4010" } }

I do not see the syntax errors hi-lighted on line number 4 and 6. What am I missing. Attached is a screenshot of the editor window with the JSON snippet.

screen shot 2017-03-29 at 10 53 19 pm
giorgiobeggiora commented 5 years ago

same issue. did you find a solution?

Arcanemagus commented 5 years ago

What consumer are you using? linter? atom-ide-ui?

giorgiobeggiora commented 5 years ago

I'm using linter. I partially solved it installing linter-ui-default but i can't see the beautiful tooltip that i see readme of this repo. My atom-ide-ui is disabled.

Arcanemagus commented 5 years ago

It looks like this provider is specifying ranges that are only a single character wide (probably why that screenshot shows the tooltip at the start of the line). Are you seeing results in the panel?

giorgiobeggiora commented 5 years ago

yes, I am

giorgiobeggiora commented 5 years ago

Ok, I was able to display the tooltip. It appears if i move the caret next to the red dot, or if i move the mouse cursor over the line space after the red dot. I assume this should be it's default behaviour. A bit weird, imho.