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

[Bug]: Request textDocument/codeAction failed VSCode #3575

Open
2 tasks done
SapsayArtyom opened this issue May 10, 2023 · 1 comment
Open
2 tasks done

[Bug]: Request textDocument/codeAction failed VSCode #3575

SapsayArtyom opened this issue May 10, 2023 · 1 comment
Labels

Comments

@SapsayArtyom
Copy link

SapsayArtyom commented May 10, 2023

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

When I add code to .eslintrc.json it crashes and gives an error

env: {
browser: true,
es2021: true
},
extends: [
'plugin:react/recommended',
'standard-with-typescript'
],
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json'
},
plugins: [
'react'
],
settings: {
react: {
version: 'detect'
}
},

My error:

Request textDocument/codeAction failed.
Message: Request textDocument/codeAction failed with message: Range#create called with invalid arguments[[object Object], [object Object], undefined, undefined]
Code: -32603

Expected Behavior

I can't find the cause of the breakage

eslint-plugin-react version

v7.32.2

eslint version

v8.40.0

node version

v16.14.2

@ljharb
Copy link
Member

ljharb commented May 10, 2023

What happens on the real command line? (not the terminal in vscode)

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

No branches or pull requests

2 participants