-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Error loading schema causes ESLint to crash #1378
Comments
@turbosheep44 @Manivela I need help with testing new behaviour, please try the following alpha version update:or another solution n2 |
@B2o5T seems to be working on |
@Manivela what exactly doesn't work for you on |
sorry to hijack this issue 😅 looks like my crashes were a combination of this issue #1091 and my installed graphql version (14.1.1) after upgrading my graphql version and using the terminal to run eslint everything works fine with both alphas and the current 3.14.3 version. when I was running graphql14 through the terminal I could see this error message: I'm assuming graphql14 isn't supported so everything is working as expected. |
@B2o5T Just tested with version I have updated the reproduction environment to reflect the problem. Even though the mistake only exists in the
|
Unfortunately, this is a downside and can't be fixed because we can't build a schema that contains validation errors, in this case, we aren't able to provide a GraphQL schema for rules that require it. |
closed by #1386 |
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Description
A problem in the schema causes ESLint to outright crash, rather than outputting an error.
Reproduction
To reproduce, open this workspace and execute the command
npm run lint
.Expected behavior
I expect ESLint to output an error that the type
Carw
does not exist in the usual manner.Environment:
@graphql-eslint/eslint-plugin
:3.14.3
16.14.2
,18.12.1
Additional context
This also causes problems with the ESLint VS Code extension. The ESLint processes crashes and does not restart, so all linting is lost and also an error alert is shown by VS Code.
The text was updated successfully, but these errors were encountered: