Closed canatufkansu closed 3 years ago
Same bug in Windows 10 with PhpStorm 2020.3.2, plugin version 2.9.0, downgrading plugin (tried 2.8 and 2.7) does not help, graphql files are not recognized anymore.
Hi @canatufkansu! I think it's because of repeatable directives (https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/issues/351), they are not supported yet, but I'm currently working on it. I'm going to finish a complete redesign of the schema building process within this month.
As a quick fix, you could remove "repeatable" from the directives and check if it starts working.
Hi @canatufkansu! I think it's because of repeatable directives (#351), they are not supported yet, but I'm currently working on it. I'm going to finish a complete redesign of the schema building process within this month.
As a quick fix, you could remove "repeatable" from the directives and check if it starts working.
Hi, @vepanimas
I tried the quick fix, it solved most of the issues but there is still an error.
@canatufkansu hi! Sorry for the late response. The error message says that the type with the name _
is not defined, but it should be. I'm not sure what are you trying to achieve exactly, but you could try to define it manually like this
scalar _
# or
input _ {
empty: String # input types must have at least one field
}
type Query {
id(orderBy: _): String
}
Repeatable directives support will be available soon.
Describe the bug When I create attached directives trough Lighthouse PHP package artisan command, JS Graphql add-on doesn't accept the file.
To Reproduce Link to Repo with Reproduction or Steps to Reproduce:
Expected behavior When I create directives.graphql file through Lighthouse Php package JS Graphql should recognize the file and check my schema.graphql file according to it.
Screenshots If applicable, add screenshots to help explain your problem.
Version and Environment Details Operation system: Macos 11.2.2 IDE name and version: PhpStorm 2020.3 Plugin version: 2.9.0
Additional context I understand this issue is also related to Lighthouse Php package but I couldn't find any error on their directives file that is generated. Thus I open an issue on your side.