Git Product home page Git Product logo

Comments (4)

fostimus avatar fostimus commented on June 7, 2024

Also getting this, but only on certain projects...

from linter-eslint.

savetheclocktower avatar savetheclocktower commented on June 7, 2024

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.

amxmln avatar amxmln commented on June 7, 2024

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.

UziTech avatar UziTech commented on June 7, 2024

For eslint v8+ you should use linter-eslint-node.

from linter-eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.