AtomLinter / linter-eslint-node

ESLint plugin for Atom/Pulsar Linter (v8 and above)
https://web.pulsar-edit.dev/packages/linter-eslint-node
MIT License
4 stars 3 forks source link

Bug: `Cannot read properties of undefined (reading 'url')` #18

Closed EvHaus closed 2 years ago

EvHaus commented 2 years ago

Issue Type

Bug

Issue Description

When using linter-eslint-node I frequently get this:

Screen Shot 2022-03-25 at 9 14 58 AM
Cannot read properties of undefined (reading 'url')

There is no tracestack in the dev tools so I'm not sure what's causing it. The issue seems to go away on its own after saving the file, but then comes back again at some point. I'm still not able to figure out how to reproduce consistently.

Bug Checklist

Atom version: 1.61.0-beta0
linter-eslint-node version: 1.0.4
Worker using Node at path: /Users/evhaus/.nvm/versions/node/v16.14.1/bin/node
Worker Node version: v16.14.1
Worker PID: 7240
ESLint version: 8.11.0
ESLint location: /Users/evhaus/Git/zenhub/node_modules/eslint/
Linting in this project performed by: linter-eslint-node
Hours since last Atom restart: 0.5
Platform: darwin
Current file's scopes: [
  "source.ts",
  "punctuation.terminator.statement.semicolon"
]
linter-eslint-node configuration: {
  "scopes": [
    "source.js",
    "source.jsx",
    "source.js.jsx",
    "source.flow",
    "source.babel",
    "source.js-semantic",
    "source.ts"
  ],
  "nodeBin": "node",
  "warnAboutOldEslint": true,
  "autofix": {
    "fixOnSave": false,
    "rulesToDisableWhileFixing": [],
    "ignoreFixableRulesWhileTyping": false
  },
  "disabling": {
    "disableWhenNoEslintConfig": true,
    "rulesToSilenceWhileTyping": []
  },
  "advanced": {
    "disableEslintIgnore": false,
    "showRuleIdInMessage": true,
    "useCache": true
  }
}
savetheclocktower commented 2 years ago

I think #17 will fix this. I'll try to get it out today.

savetheclocktower commented 2 years ago

OK, closing based on my assumption that this is fixed in 1.0.5, but if you update and it's still happening, let me know and I can reopen. Thanks!

EvHaus commented 2 years ago

Thanks for the super fast response and fix. Testing 1.0.5 now and will report back if it's still an issue.