-
Notifications
You must be signed in to change notification settings - Fork 342
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
Have to reload window often #1156
Comments
It looks like the ESLint server is running out of memory. You could use the What is suspicious is the fact that restarting the server doesn't correctly register a |
Thanks @dbaeumer , yes if the restart would work properly then it's better. I tried using the Ideally there's a way to configure the node command line arguments, e.g. |
I agree on the possibility to configure that as a eslint setting. PR welcome. Regarding the shell script. That will not work on Windows since there it will try to use cmd.exe. Does it work for your team mates using Mac? |
I had exactly the same issue. None of the solutions I found in similar issues worked on my Windows environment. The only one which work is to set
It works fine in monorepo project with four angular, cordova and electron projects in the same workspace with over 1'200 ts files. |
Tip: Try to update your You must put |
Putting I can use |
@ranisalt does the validation happen correctly when you use eslint in the terminal. If this is the case can you please provide me with a GitHub repository I can clone that demos what you are experiencing. |
Confirmed the same.
I had tried many things, like |
In addition to @JaLe29 suggestion, folders which should not be checked by eslint should be excluded in .eslintrc.json file:
|
The vscode-eslint extension completely stopped working for us!!! At some point our eslint settings completely stopped working on all our machines and always gave us Getting code actions from ''ESLint'' with a Code Helper Process at 100%... it vscode even tried to get code actions from ESLint - even though our setting is set to We now tried to figure out if yarn berry was the problem and installed our project with yarn v1.22.4 - problem exactly the same. Even tried to disable all other vscode extensions - and only run eslint, to figure out if it is a problem with other extensions... same result. We now installed version 2.1.6 of vscode-eslint, which seems to work perfectly... so the bug must be somewhere between those versions. this is a newly created next.js app, with a minimal dependencies.
|
@ChiefORZ since it sounds like you are able to reproduce this could you provide me with a GitHub repository I can clone that demos that? |
Also facing this, I'm working around it by closing some files that I'm not actively working at the moment and restarting the server too. I have a medium monorepo, and whenever I have 8+ files open it starts to happen. Not really sure, but it might be a regression because I used to work on a considerably larger monorepo fine. And even if it's the case, it's hard to tell if it's on More and more it seems that we have reached the ceiling with tooling written in JS and we should go with Rust/Go instead as ESBuild and friends are doing, to achieve better performance. |
The number of open files shouldn't have an huge impact on the server. The server is only validating the file you are typing in, not the others. |
Interesting. It might have to do with |
@rdsedmundo it depends on the rules you are using. If you use rules that require type resolving then typescript-eslint will read other TS/JS files and parses them. But it will not validate them. |
Got fixed with #733 |
I am new to the computing world so i don't know most of the things here. However, I can't do anything when it comes to my vs codespace, it takes forever to start, and when it eventually loads, it tells me it cannot connect, that I need to reload page, just after 1 minute of use. I have failed to completely have my lectures on coding in C just because i cannot use the vs codespace at all. |
We've recently switched from TSLint to ESLint in a large mono repo. After a while, about every 10-30 minutes, ESLint stops working and I have to reload the VSCode window. It will then no longer show new issues, and when I click CTRL + . on an issue it found before the crash, it shows "No code actions available".
When I check the Output console, I see these errors all the time:
Once it has crashed, and I try to do CTRL + . for the code actions, I see this in the output console:
It just crashed again, at the time it happened this was in the logs:
I can't find any existing issue about it.
I'm on Node 12.14.1 and ESLint 2.1.14
The text was updated successfully, but these errors were encountered: