Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report issues back to client #87

Open
mantoni opened this issue Apr 10, 2018 · 3 comments
Open

Report issues back to client #87

mantoni opened this issue Apr 10, 2018 · 3 comments

Comments

@mantoni
Copy link
Owner

mantoni commented Apr 10, 2018

Currently the stderr output and any exception thrown in the eslint_d daemon are lost. It would be great to collect process.stderr and catch global errors and report them back to clients.

Alternatively, we could try to find a good place to put logs – or at least let users configure a log output stream when starting the server so that we can trace issues better.

Ref #86

@kaste
Copy link
Contributor

kaste commented Feb 10, 2023

Hi, a user of SublimeLinter has from time to time "Error: ENOENT: no such file or directory, open /../eslint/node_modules/globals/index.js" and resolves with eslint_d restart. SublimeLinter/SublimeLinter-eslint#327 Ideally I would like to get a message on stderr and restart automatically. (Or show a button so we don't dead-loop lint -> restart -> lint -> restart ...) Is that possible, or as this is a rather old issue already implemented?

@panaak
Copy link

panaak commented Feb 15, 2023

I just spent several hours trying to figure out why emacs started to spit out this error:

Suspicious state from syntax checker javascript-eslint: Flycheck checker javascript-eslint returned 2, but its output contained no errors: Error: Cannot find module '.../node_modules/@eslint/eslintrc/node_modules/js-yaml/index.js'

Turns out there was a stale ~/.eslint_d file. Also fixed by eslint_d restart.

Some sensible feedback from the server would be really nice! ./

@mantoni
Copy link
Owner Author

mantoni commented Apr 15, 2023

I'm currently too busy, but would help, review and accept PRs.

Things that can be improved:

  • Improve client error message when unable to connect.
  • Communicate server issues back to client.
  • Add a --log <file> option for debugging purposes.

Help with any of those ideas would be appreciated. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants