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

Unable to read schema from node_modules #496

Closed bdaley-seek closed 1 year ago

bdaley-seek commented 2 years ago

Describe the bug When referencing a schema file in a node_modules directory, the plugin fails to read the schema.

To Reproduce

  1. Add a graphql schema file anywhere in node_modules
  2. Configure the plugins schemaPath with a relative file path eg. ./node_modules/path-to/schema.gql
  3. Click the reload/recycle icon on the graphql plugin tool panel

Expected behavior The plugin, when provided a valid schemaPath, should load the specified schema

Version and Environment Details Operation system: OS X 10.15.7 IDE name and version: WebStorm 2021.2.2 Build #WS-212.5284.41 Plugin version: 3.0.0

Additional context The schema file is parsed correctly when present in the project root.

vepanimas commented 1 year ago

Closed as duplicate of #422.