JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

PhpStorm gatsby autodiscover error #696

Closed marsal closed 7 months ago

marsal commented 7 months ago

Describe the bug I'm using the plugin in PHPStorm, and I'm not able to work with gatsby graphql implementation. I followed both guides, Gatsby graphQL TypeGen and Plugins guide, and I have all OK.

1- I have graphql.config.js file in my root folder image

2- I have gatsby graphql files in .cache/typegen folder and isn't excluded for indexing image

If I go to graphQL inspection window, I can see 2 graphql entry points image

And this is the problem, for some extrange reason, the ide auto reads the .cache/typegen/graphql.config.json as other root graphql node and nothing works

If I manually delete the file and copy/paste the content to graphql.config.js file on root folder everything works perfectly image image

Version and Environment Details Operation system: Ubuntu 22.04.3 LTS IDE name and version: PhpStorm 2023.2.4 Current Desktop: ubuntu:GNOME Plugin version: 4.0.2

vepanimas commented 7 months ago

@marsal hi! Sorry for the confusion, the documentation is updated for the latest version of the plugin. You can try the latest EAP 2023.3, it should work in that version.

marsal commented 6 months ago

Yeah! now works like a charm! :smiley: