Skip to content
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

Hello World example/'vscode-graphql.contentProvider' failed #2292

Open
LinqLover opened this issue Apr 27, 2021 · 6 comments
Open

Hello World example/'vscode-graphql.contentProvider' failed #2292

LinqLover opened this issue Apr 27, 2021 · 6 comments
Labels

Comments

@LinqLover
Copy link

I'm probably doing something very basic wrong, as I'm just learning GraphQL.

In VS Code, I created a .gql file with the following contents:

POST https://api.github.com/graphql
Authorization: bearer ghp_my0token0here

query($owner:String!, $name:String!) {
  repository(owner: $owner, name: $name) { 
    url, stargazerCount
  }
}

Then I run "Execute GraphQL Operations" via the Command Palette and receive the following error:

Running the contributed command: 'vscode-graphql.contentProvider' failed.

As said above, I'm probably doing something very basic wrong, but IMO this error message is not descriptive at all. Maybe you could give me a short hint what I am expected to do instead in order to test out my query from VS Code? :-)

@acao acao added the bug label Nov 11, 2021
@acao
Copy link
Member

acao commented Nov 11, 2021

that seems to be an internal exception! I appreciate your humility, but this isn't what the error should look like at all. I specifically added a feature to display network and graphql errors in the results pane, so this is a bug/regression!

when you ran "execute graphql operation" command, was your cursor on or selecting the query?

@hinogi
Copy link
Contributor

hinogi commented Apr 12, 2022

Same here
graphql notebook is working but not graphql operations
image

@acao
Copy link
Member

acao commented Apr 12, 2022

hey! that functionality was removed for the time being in 0.4.x, if you see in the changelog. the latest merge removes that command from the manifest but there have been issues publishing it.

we no longer support query execution so as to limit the vscode-graphql maintenance/test surface area to focus on improcing the lsp experience

for now, we're suggesting joyce's extension in addition to ours, and considering creating a language bundle

@hinogi
Copy link
Contributor

hinogi commented Apr 12, 2022

that link is only for the github graphql notebooks

@acao acao transferred this issue from graphql/vscode-graphql Apr 12, 2022
@LinqLover
Copy link
Author

If you cannot reproduce the issue, I would be willing to provide further information, but as mentioned by @hinogi, the command is no longer available and the suggested alternative works for notebooks only. It might be great to get this functionality back in any way. Please ping me if I can do anything else, and thanks for the feedback!

@acao
Copy link
Member

acao commented Apr 18, 2022

@LinqLover we will eventually bring this functionality back via joyce's extension and/or another extension, once there are resources to support it.

For now, we need to focus on some significant changes and longstanding issues in the language server and thus the extension reference implementation. I and @orta debated it for a while but he is right, this is the most realistic path for us for now until we have more interested contributors to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants