JetClient / jet-client-support

JetClient is an advanced REST API Client plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/21173-jetclient
111 stars 0 forks source link

GraphQL Introspection and schema linking no longer working since last update #95

Closed shaughnlgh closed 4 months ago

shaughnlgh commented 4 months ago

Describe the bug GraphQL Introspection no longer working and IntelliJ IDEA now reports Internal plugin error on startup:

com.intellij.diagnostic.PluginException: Cannot create extension (class=io.jetclient.graphql.GraphQLEditorHeaderComponentProviderImpl) [Plugin: io.jetclient]
    at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:988)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.doCreateInstance(XmlExtensionAdapter.kt:73)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.kt:33)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.kt:395)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.createExtensionInstances(ExtensionPointImpl.kt:353)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.kt:214)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.kt:229)
    at com.intellij.openapi.extensions.ExtensionPointName.getExtensions(ExtensionPointName.kt:51)
    at io.jetclient.bB.a(SourceFile:97)
    at io.jetclient.bB.<init>(SourceFile:54)
    at io.jetclient.bu$6.a(SourceFile:67)
    at io.jetclient.bu$6.invoke(SourceFile:67)

In the body section of the JetClient plugin, there used to be a dropdown that allowed to select the graphQL schema to validate against. This no longer exists and writing any query is invalidated. Running the query does produce a successful response, but writing the query now requires a manual introspection and looking up fields.

For reference, here is my existing graphql.config.xml, where manual introspection through the GraphQL plugin in IntelliJ works fine.

Screenshot 2024-07-31 at 10 32 10

And here is the invalidated query, with the missing dropdown in the JetClient plugin:

Screenshot 2024-07-31 at 10 35 25

Environment information:

AntonShuvaev commented 4 months ago

Thanks for reporting this issue. I will fix it soon.

AntonShuvaev commented 4 months ago

Fixed in version 2024.3.2