Python Language Server conflicting with GraphQL extension
See original GitHub issueEnvironment data
- VS Code version: 1.51
- Extension version (available under the Extensions sidebar): v2020.11.371526539
- OS and version: macOS 10.15 Catalina
- Python version (& distribution if applicable, e.g. Anaconda): Anaconda Python 3.8
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Relevant/affected Python packages and their versions: N/A
- Relevant/affected Python-related VS Code extensions and their versions: graphql-0.13.12
- Value of the
python.languageServer
setting: true
Expected behaviour
Execute GraphQL queries to a remote endpoint successfully, inside of a multi-root, multi-language workspace.
Actual behaviour
Installing and running this extension inside of my Python Workspace with the listed configuration generates the following error
ERR name must not be falsy: Error: name must not be falsy
at Function.validate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:524:978)
at new C (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:524:927)
at new C (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:511:436)
at asSymbolInformation (/Users/user/.vscode/extensions/graphql.vscode-graphql-0.3.12/node_modules/vscode-languageclient/lib/protocolConverter.js:383:22)
at /Users/user/.vscode/extensions/graphql.vscode-graphql-0.3.12/node_modules/vscode-languageclient/lib/protocolConverter.js:372:42
at Array.map (<anonymous>)
at Object.asSymbolInformations (/Users/user/.vscode/extensions/graphql.vscode-graphql-0.3.12/node_modules/vscode-languageclient/lib/protocolConverter.js:372:23)
at /Users/user/.vscode/extensions/graphql.vscode-graphql-0.3.12/node_modules/vscode-languageclient/lib/client.js:1005:62
The errors do not appears to be from the Language Server, but googling for the error itself yields only issues related to the Python Language Server. I am able to run the graphql extensions inside a single language, non multi-root workspace (From my screenshot above). Search Reference
Steps to reproduce:
- Create a multi-root workspace
- Initialize the Python Language Server
- Install graphql from the Extensions marketplace
- Configure GraphQL with a remote or local schema
- Create a query file
- Run ‘Execute Query’
- The query window will return an empty screen instead of data.
Logs
- This is a work computer, please DM me on twitter for more logging 😃
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Add Python to your GraphQL API with GraphOS and ...
In this post, we'll look at how to create a subgraph in Python using the Strawberry GraphQL library. Python is an extremely popular...
Read more >Top GraphQL Errors and How to fix them
Identifying error types will help quickly fix them. Clients can encounter these types of errors while communicating with the GraphQL server.
Read more >GraphQL specification
This is the specification for GraphQL, a query language and execution engine originally created at Facebook in 2012 for describing the capabilities and ......
Read more >Requests and Responses - GraphQL - Dgraph
Get the structure for GraphQL requests and responses, how to enable compression for them, and configuration options for extensions.
Read more >GraphQL: Language Feature Support
Extension for Visual Studio Code - GraphQL LSP extension that adds autocompletion, validation, go to definition, hover, outline and more.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@luabud Not a problem. I’ll try out Pylance and see if it resolves the issue.
Is there an EOL for the Python Language Server in favor of Pylance?
We have recently released a new and more performant language server called Pylance which could solve this issue you are reporting. You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team’s development efforts have shifted to support the new language server, we’d encourage you to try it out.