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

False positive schema validation errors: 'X' type tried to redefine existing 'X' type #536

Open simPod opened 2 years ago

simPod commented 2 years ago

Describe the bug I'm getting invalid schema validation errors:

image

To Reproduce

  1. Have .graphqls file

    """The `DateTime` scalar type represents time data, represented as an ISO-8601 encoded UTC date string."""
    scalar DateTime
  2. DateTime is underlined red and gives the error above

Expected behavior

No error

Version and Environment Details Operation system: macos IDE name and version: 2021.3 Plugin version: 3.0.0

vepanimas commented 2 years ago

Hi! What happens if you click "navigate to related definition" in the description? Do you have multiple type declarations with the same name?

simPod commented 2 years ago

@vepanimas oh, lol :D

I have two different schemas in two .graphqls files in the same project and duplicates are checked across them.

simPod commented 2 years ago

Confirmed on 3.1.2