Comments (4)
Also getting this, but only on certain projects...
from linter-eslint.
I dug into this and it turns out it's an artifact of #1440.
CLIEngine
was deprecated in ESLint v7 and is now absent in v8. That, I think, is ultimately why fileConfig
is null in this code block, and why all attempts to communicate with the worker result in the worker immediately sending back an empty array instead of the response message that getDebugInfo
expects when it sends a “debug” job to the worker. The assumption that the response will be present is what triggers this error.
I'm not saying this is a duplicate, mind you. That the cause of this problem is so far away from how it's presented to the user is likely its own problem that could be improved. Some more sanity checking could be helpful here, like testing for the presence of CLIEngine
and explicitly stopping and showing a notification if it's not there.
If this package is ever able to support ESLint 8 (whether by JS API integration or CLI output), this code path will get more paranoid anyway, as it won't be able to simply assume that CLIEngine
exists anymore. If it won't support ESLint 8, and we all end up having to install a new linter-eslint-8
or something, then this should still be fixed, so it can explain to people why linter-eslint
is silently failing and point them to the new package.
I'm keeping my eye on #1442 to see what the outcome is. If you absolutely need Atom-integrated linting for your project, you'll have to downgrade it to ESLint 7 until this gets worked out.
from linter-eslint.
Perhaps it’s useful for some context, so I’m leaving this here.
I had the same issue on a brand new Vue project initialised with npm init vue@latest
(so Vite + Eslint 8). I was wondering why I didn’t have any in-editor linting when the lint
command worked fine in the terminal and did some investigating. When I tried getting the linter-eslint debug info, I ran into this error at first.
However, as soon as I disabled the checkbox next to "Disable when no ESLint config is found" in the plugin settings, the Linter ESLint: Debug
command started working again (although I’m still not able to lint files because of #1448 or something relating to that).
from linter-eslint.
For eslint v8+ you should use linter-eslint-node.
from linter-eslint.
Related Issues (20)
- Clicking link to rule HOT 3
- doesn't detect the same id using error and not showing the red dot in any of the errors HOT 1
- Invalid position given by 'prettier/prettier' HOT 2
- Uncaught Error: Cannot find module '$ATOM_HOME/packages\linter-eslint\node_modules\atom-package-d... HOT 1
- Option to point to Node executable HOT 1
- Vue.js: 'unable to resolve path to module' if using the `@` alias to `src` folder HOT 6
- Using yarn pnp - invalid .eslintrc.js HOT 2
- Support for ESLint 8 HOT 5
- Issue with eslint-plugin-import with eslint 8.2.0 HOT 7
- Invalid position given by 'func-call-spacing' HOT 2
- Cant get ESLINT to work with local eslint in node_modules HOT 1
- Linter messages not appearing when using NextJs extension in .eslintrc.json HOT 4
- Not working with `create-react-app` HOT 4
- Bug: .ts and .tsx Issue with eslint 8.0.0 or above. Works fine with 7.32.0 or below. #15659 HOT 1
- Fix on save has stopped working HOT 3
- Cannot find module HOT 2
- Cannot install package on Atom
- Linter is installed but essential package is not!
- Using eslint v8.x results in "Error while running ESLint: eslint.CLIEngine is not a constructor" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter-eslint.