linter-eslint icon indicating copy to clipboard operation
linter-eslint copied to clipboard

re-enable package will cause lint error message report more than once

Open noe132 opened this issue 7 years ago • 1 comments
trafficstars

Issue Type

Bug

Issue Description

  1. Open atom with new profile
  2. install linter linter-eslint linter-ui-default bust-signal intensions
  3. init a empty folder, and install eslint
  4. create .eslintrc.js with following content
module.exports = {
  'rules': {
    'semi': ['error', 'never'],
  },
}
  1. create a index.js and type in console.log('hi'); from now you will get lint result about unnecessary semicolon
  2. go to setting page, disable linter-eslint and re-enable it
  3. you might check that extra semi was reported twice
  4. repeat 6 and 7, and you might get several extra semi report after re-enable the package tim 20180724173243

it looks like the previous eslint instance wasn't get closed, and re-enable the package creates a new one that they both provide linting message

Atom version: 1.28.2
linter-eslint version: 8.4.1
ESLint version: 5.2.0
Hours since last Atom restart: 0.1
Platform: win32
Using local project ESLint from: C:\Users\noe\src\etest\node_modules\eslint
Current file's scopes: [
  "source.js",
  "punctuation.terminator.statement.js"
]
linter-eslint configuration: {
  "lintHtmlFiles": false,
  "useGlobalEslint": false,
  "showRuleIdInMessage": true,
  "disableWhenNoEslintConfig": true,
  "eslintrcPath": "",
  "globalNodePath": "",
  "advancedLocalNodeModules": "",
  "eslintRulesDirs": [],
  "disableEslintIgnore": false,
  "disableFSCache": false,
  "fixOnSave": false,
  "scopes": [
    "source.js",
    "source.jsx",
    "source.js.jsx",
    "source.babel",
    "source.js-semantic"
  ],
  "rulesToSilenceWhileTyping": [],
  "rulesToDisableWhileFixing": [],
  "ignoreFixableRulesWhileTyping": false
}

noe132 avatar Jul 24 '18 09:07 noe132

@Arcanemagus Seems like we should force clear any existing messages as part of deactivate.

skylize avatar Nov 02 '18 03:11 skylize