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
880 stars 97 forks source link

Errors not showing on schema errors panel #449

Closed stephenjason89 closed 3 years ago

stephenjason89 commented 3 years ago

Before you create the issue

Describe the bug A clear and concise description of what the bug is.

To Reproduce Link to Repo with Reproduction or Steps to Reproduce:

  1. create a js file
  2. import graphql-tag
  3. create an incorrect query

Expected behavior I expect the error to show on the graphql panel under schema errors

Version and Environment Details Operation system:win10 IDE name and version: 2020.3.3 webstorm Plugin version: 2.9.1

Screenshots If applicable, add screenshots to help explain your problem.

image

.graphqlconfig

{
  "name": "GraphQL Schema",
  "schemaPath": "schema.graphql",
  "extensions": {
    "endpoints": {
      "Default GraphQL Endpoint": {
        "url": "http://localhost:8000/graphql",
        "headers": {
          "user-agent": "JS GraphQL"
        },
        "introspect": true
      }
    }
  }
}
jimkyndemeyer commented 3 years ago

Hi,

Thanks for using the plugin.

The GraphQL "Schemas and Project Structure" tool view is limited to schema errors, which doesn't include queries, fragments and mutations.

To see errors in queries and other places where you're using the schema, you can click the top-right error icon which shows "25" in your screenshot. This will bring up the "Problems" tool window.

Hope that's helpful.

Best regards, Jim.

stephenjason89 commented 3 years ago

Thank you for the reply :)