Vscode-eslint: After last plugin updating eslint quick fix is not working.

Created on 16 Dec 2019  路  7Comments  路  Source: microsoft/vscode-eslint

Before updating it was possible to fix prettier errors with context menu.

For plugin version 2.0.4 it is not possible,

Screenshot_2

Screenshot_3

needs more info

Most helpful comment

I think I have an idea why this is broken now. Let me investigate. I was under the impression that the quick fixes are missing all together but they are only missing in connection to presenting problems.

All 7 comments

@dbaeumer, should I provide additional information?

@it-sha can you please provide me with a GitHub repository I can clone that demos this. Would be really helpful.

This still works for me in my simple sample:

capture

Hmm quickfix also missing on my machine, @dbaeumer what shoud I provide you to debug?

Quickfixes not available here as ussuals, (there should be quick fix) on the modal pop up
Screenshot from 2019-12-17 10-46-07

but available here (when you click on the bulb button)
Screenshot from 2019-12-17 10-46-19

My Machine

Version: 1.42.0-insider
Commit: 2d2ac8f75b539d505443ac0733b196851c0b218d
Date: 2019-12-16T12:10:45.075Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 5.3.0-24-generic

package.json

"devDependencies": {
    "@nuxtjs/eslint-config": "^2.0.0",
    "@nuxtjs/eslint-module": "^1.1.0",
    "@vue/test-utils": "^1.0.0-beta.30",
    "babel-core": "7.0.0-bridge.0",
    "babel-eslint": "^10.0.3",
    "babel-jest": "^24.9.0",
    "eslint": "^6.7.2",
    "eslint-config-prettier": "^6.7.0",
    "eslint-config-standard": ">=14.1.0",
    "eslint-plugin-import": ">=2.19.1",
    "eslint-plugin-jest": "^23.1.1",
    "eslint-plugin-node": ">=10.0.0",
    "eslint-plugin-nuxt": "^0.5.0",
    "eslint-plugin-prettier": "^3.1.2",
    "eslint-plugin-promise": ">=4.2.1",
    "eslint-plugin-standard": ">=4.0.1",
    "eslint-plugin-vue": "^6.0.1",
    "jest": "^24.9.0",
    "nodemon": "^2.0.2",
    "prettier": "^1.19.1",
    "vue-jest": "^3.0.5"
  }

vscode configuration?


settings.json

{
    "sync.gist": "826dcc01559ac1bdb2636d810206adc8",
    "workbench.colorTheme": "Activate SCARLET protocol (beta)",
    "window.zoomLevel": 1,
    "workbench.iconTheme": "material-icon-theme",
    "workbench.sideBar.location": "right",
    "python.insidersChannel": "weekly",
    "workbench.startupEditor": "newUntitledFile",
    "git.enabled": false,
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true,
    "editor.fontWeight": "700",
    "eslint.validate": [ "vue", "javascript", "javascriptreact"],
    "editor.renderWhitespace": "boundary",
    "vetur.validation.template": false,
    "files.exclude": {
        "**/.cache": true,
        "**/node_modules/": true
    },
    "files.watcherExclude": {
        "**/node_modules/*/**": true,
        "**/.cache": true
    },
    "files.associations": {
        ".njk": "html"
    },
    "window.titleBarStyle": "custom",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "editor.tabSize": 2,
    "git.enableSmartCommit": true,
    "explorer.confirmDragAndDrop": false,
    "peacock.favoriteColors": [
        {
            "name": "Cyber Red",
            "value": "#8c0000"
        },
        {
            "name": "Angular Red",
            "value": "#b52e31"
        },
        {
            "name": "Auth0 Orange",
            "value": "#eb5424"
        },
        {
            "name": "Azure Blue",
            "value": "#007fff"
        },
        {
            "name": "C# Purple",
            "value": "#68217A"
        },
        {
            "name": "Gatsby Purple",
            "value": "#639"
        },
        {
            "name": "Go Cyan",
            "value": "#5dc9e2"
        },
        {
            "name": "Java Blue-Gray",
            "value": "#557c9b"
        },
        {
            "name": "JavaScript Yellow",
            "value": "#f9e64f"
        },
        {
            "name": "Mandalorian Blue",
            "value": "#1857a4"
        },
        {
            "name": "Node Green",
            "value": "#215732"
        },
        {
            "name": "React Blue",
            "value": "#00b3e6"
        },
        {
            "name": "Something Different",
            "value": "#832561"
        },
        {
            "name": "Vue Green",
            "value": "#42b883"
        }
    ],
    "explorer.confirmDelete": false,
    "nativescript.analytics.enabled": true,
    "eslint.alwaysShowStatus": true,
    "eslint.format.enable": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    }
}

Eslint VSCode extension version 2.0.5

Some weird fix, but works:

Use old deprecated settings then quick fix will be available again

The quick fix is downgrading to 1.9.1.

@dbaeumer
I have the same case as for mandaputtra
Quick fix not available on the modal pop up but available for this icon
image

I will prepare repo with this bug in the nearest time.

I think I have an idea why this is broken now. Let me investigate. I was under the impression that the quick fixes are missing all together but they are only missing in connection to presenting problems.

Was this page helpful?
0 / 5 - 0 ratings