question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eslint server takes ~3-5 minutes until available

See original GitHub issue

I don’t know since when this is a problem but the start of the eslint server takes between 3-5 minutes here.

[Info  - 10:12:55] ESLint server is running.
[Info  - 10:16:05] ESLint library loaded from: d:\Workspaces\xxx\xxx-client\node_modules\eslint\lib\api.js

I just upgraded from eslint 3.x to 4.19.1, which didn’t help.

Any information I can provide to hunt that down?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:33 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
schmiccommented, Apr 10, 2018

As I said, what’s happing on @drw112 end is an update-check, which gets blocked by the firewall as it not goes through the proxy …

@drw112 we should try the NO_UPDATE_NOTIFIER=1 environment setting to disable that check.

1reaction
drewtownchicommented, Apr 9, 2018

It seems to be taking a very long time on line 310 _globalNpmPath = Files.resolveGlobalNodePath(trace);

in the globalNpmPath function

It does eventually return the right path for the _globalNpmPath variable.

Looking in files.js it seems to be taking forever on the spawnSync command

Eventually stdout comes back with the npm folder in my roaming profile (Windows)

I see these log lines in the Debug Console

[dbaeumer.vscode-eslint] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for 'eslint._legacyModuleResolve', provide the URI of a resource or 'null' for any resource. extensionHostProcess.js:494 [dbaeumer.vscode-eslint] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for 'eslint.nodePath', provide the URI of a resource or 'null' for any resource. extensionHostProcess.js:494

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint not working in VS Code? - Stack Overflow
If ESLint is running in the terminal but not inside VSCode, it is probably because the extension is unable to detect both the...
Read more >
Local Install of ESLint Breaks In-Editor Linting
From what I've read it seems that VS 2019 is designed to use a global version of ESLint by default but to favor...
Read more >
Code Quality Tooling with Prettier and ESLint - Wes Bos
ESLint, is a JavaScript linter for identifying and reporting potential issues ... eslint demo page with rule selector showing the list of available...
Read more >
no-loop-func - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
failed to apply eslint fixes to the document. please consider ...
Failed to load plugin 'prettier' declared in '.eslintrc.js ... O U T P U T */ [Info - 10:19:30 PM] ESLint server is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found