New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V2] WebStorm crashes when trying to run introspection query #241
Comments
Hi Tam. Thanks for using the plugin. Unfortunately this issue isn't actionable without more information about how to reproduce it. The configuration you've shown is just fine, and I just used it to introspect http://gdom.graphene-python.org/graphql without any problems. You mention that WebStorm crashes. What do mean by that exactly? Ideally there should be a stack trace available from the error icon in the bottom right of the IDE. If the process dies, the log file might provide the information needed to make this issue actionable. You can access the log via the "Help" menu > "Show log" menu item. Hopefully a search for graphql in that log yields an exception you can attach to this issue. Best regards, |
Sorry, "crash" isn't very descriptive! WebStorm completely freezes and stops responding. I have to force quit and re-open it to use it again. I tested with the example you gave and it worked fine, but I had a look at the result of the introspection query it's only just over 2000 lines, so I'm not sure it's quite comparable. I just updated to 2.1.0 and was greeted with a notification telling me to run the introspection query. Doing so didn't cause WebStorm to freeze this time, but did throw this short error:
I tried running it a few more times and it stopped freezing after the first couple of tries, but I am now getting this error:
|
Hi Tam. Both these errors occur in graphql-java when the introspection result has to be turned into a schema. As other schemas are working fine this appears to be a schema-specific edge case that they haven't encountered before. Could you please attach the introspection result to this issue. You can grab it from the "Query" GraphQL tool window tab after you've executed the introspection. Without it I can't log an actionable and reproducible issue with the graphql-java project. Thanks, |
@jimkyndemeyer I can't send you the introspection result from the plugin because WebStorm freezes every time I try to view the tab (I think because it's trying to syntax highlight it). I tried upping the allowed ram to 4gb, but it didn't help. I've attached the result of GraphiQL's introspection query instead, since that's the only one I can get. It's zipped (the uncompressed size is ~10mb). |
Hi Tam. The error is thrown due to an invalid default value in your schema. The issue has to do with the If you can't fix the default value you can choose to skip them in the plugin "GraphQL" settings panel. Let me know if this fixes your issue. Best regards, |
@jimkyndemeyer Still erroring with that checkbox disabled. We're using a slightly older version of Postgraphile, so will try updating to see if it helps. |
Version and Environment Details
Operation system: macOS 10.14.4
IDE name and version: WebStorm 2019.1, Build #WS-191.6183.63
Plugin version: v2.0.0
Expected Behaviour
Introspection query should be run and not crash WebStorm.
Actual Behaviour
Introspection query doesn't run automatically (have to click the green arrow next to the URL in .graphqlconfig) and crashes WebStorm when run.
Steps to Reproduce / Link to Repo with Reproduction and Instructions
.graphqlconfig
The full introspection query response is 331786 lines (~5.2MB) which leads me to believe it's a size issue. Previous versions of the plugin (prior to v2) didn't seem to have this issue.
The text was updated successfully, but these errors were encountered: