Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile-commands.json is reported as incorrect type #9

Closed
furrycatherder opened this issue Jul 8, 2019 · 9 comments
Closed

compile-commands.json is reported as incorrect type #9

furrycatherder opened this issue Jul 8, 2019 · 9 comments
Labels
bug Something isn't working

Comments

@furrycatherder
Copy link

The example I have is for a closed-source project, but I can try to help reproduce this using another project if needed. compile-commands.json is a big JSON array used for clang tooling. coc-json reports Incorrect type. Expected "object"..

@chemzqm
Copy link
Member

chemzqm commented Jul 8, 2019

It's expected, it's issue of json language service.

@furrycatherder
Copy link
Author

furrycatherder commented Jul 8, 2019

Would I report this upstream to microsoft/vscode-json-languageservice, then? I'm unclear on what the "json language service" you're referring to is.

@chemzqm chemzqm added the question Further information is requested label Jul 8, 2019
@chemzqm
Copy link
Member

chemzqm commented Jul 8, 2019

Can't reproduce your issue with latest coc-json.

@furrycatherder
Copy link
Author

How can I make sure I have the latest coc-json? I installed it with :CocInstall coc-json.

@chemzqm
Copy link
Member

chemzqm commented Jul 8, 2019

Use :CocList extensions to checkout.

@furrycatherder
Copy link
Author

coc-json 1.2.2 ~/.config/coc/extensions/node_modules/coc-json

Looks like I am on the latest version. I'll try to find an open source cmake project that has this same issue.

@furrycatherder
Copy link
Author

This project: https://github.com/ttroy50/cmake-examples

$ git clone https://github.com/ttroy50/cmake-examples
$ cd cmake-examples/01-basic/A-hello-cmake
$ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=YES
$ vim compile_commands.json

It shows the same warning. Is there debugging output I could enable that might be helpful?

@chemzqm
Copy link
Member

chemzqm commented Jul 9, 2019

@chemzqm chemzqm added bug Something isn't working and removed question Further information is requested labels Jul 9, 2019
@chemzqm chemzqm closed this as completed Aug 13, 2019
@AitBits
Copy link

AitBits commented Jun 25, 2020

Seems like this is still an issue.

catalog.json in this repo looks outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants