facebook / facebook/relay

[relay-lsp] Fails to start with incomplete executable document

Open
#4,449 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

If your code contains some invalid graphql tagged literal like:

```ts
const query = graphql`query`
```

And you restart the Relay LSP, you always get the following LSP error on hover, complete, etc.

> get_schema: schema is missing (or not ready, yet) for the `default` project

Once you remove or properly write out the offending graphql tagged literal everything works again.

I would expect the LSP to just skip over such incomplete definitions at startup instead of just failing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.