Skip to content

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

Open
@SapsayArtyom

Description

@SapsayArtyom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions