neoclide/coc-json

Empty JSON object reports warnings - ""appears"" to be file name related.

jeffschwartz opened this issue · 6 comments

I have an empty JSON object and there are 2 warning messages:
Screen Shot 2019-10-25 at 5 28 00 PM

The same file when opened in VSCode reports no warnings:
Screen Shot 2019-10-25 at 5 29 51 PM

Another JSON file also with an empty JSON object reports no warnings:
Screen Shot 2019-10-25 at 5 33 00 PM

However, when I change the name of the offending file to triox.json no warnings are reported:
Screen Shot 2019-10-25 at 5 39 04 PM

Can't reproduce, maybe your coc-json is too old, check :CocList extensions

Thank you @chemzqm. I have checked as you requested. My version of the coc-json is v1.2.4 and is enabled

Screen Shot 2019-10-26 at 7 03 36 AM

and still getting warning messages
Screen Shot 2019-10-26 at 7 08 43 AM

I can't swear to it but I'm thinking that the file name trio.manifest.json is causing the issue, specifically the manifest.json part of the name.

I googled manifest.json and it came back with this:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json
and the schema there includes both properties, icons and name, that the warning messages are flagging as missing.

Screen Shot 2019-10-27 at 2 14 12 PM

Let me know if there is anything else I can do to assist in fixing this issue.

Should be fixed now.

Yes, it appears to be fixed. Thank you.

It's back :)

Screen Shot 2020-02-15 at 2 02 10 PM