Skip to content

[graphiql] GraphQL LSP not working with empty document #3926

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

Open
1 task done
edmondop opened this issue May 5, 2025 · 0 comments
Open
1 task done

[graphiql] GraphQL LSP not working with empty document #3926

edmondop opened this issue May 5, 2025 · 0 comments

Comments

@edmondop
Copy link

edmondop commented May 5, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The LSP returns an error when the documents are absent in the config, although documents is optional.

[WARN][2025-05-05 20:38:48] ...lsp/handlers.lua:564	"No 'documents' config found for project: default.\nFragments and query documents cannot be detected.\nLSP server will only perform some partial validation and SDL features."
[ERROR][2025-05-05 20:38:48] ...lsp/handlers.lua:562	"WARNING: graphql-config error, only highlighting is enabled:\nThe type of Mutation.doFoo(bar:) must be Input Type but got: [Bar]!.\n\nThe type of Query.getFoo(fooFilter:) must be Input Type but got: PlanningCycleFilter.\n\nThe type of Query.getFoo(barFilter:) must be Input Type but got: BarFilter.\nfor more information on using 'graphql-config' with 'graphql-language-service-server', \nsee the documentation at https://www.npmjs.com/package/graphql-language-service-server#user-content-graphql-configuration-file"

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • GraphiQL Version:
  • OS:
  • Browser:
  • Bundler:
  • react Version:
  • graphql Version:

Anything else?

No response

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

No branches or pull requests

1 participant