-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Autocomplete slowing down after long time #28946
Comments
@vscodebot[bot] I know you're just some script, but hey, it's not just new release! :D |
@enbyted What programming language do you see this in? |
It's TypeScript and I've just checked it doesn't affect JSON or pug files. Oh, and it prevent's any kind of autocomplete from happenig even snippets - it's loading forever. |
It also prevents error highlighting, i.e. it won't underline invalid types or even syntax errors. I don't have machine with VS Code with this problem triggered available right now, if Windows Update didn't reboot the computer I'll have access to it on Monday. It also appears that it's connected with actually using the autocomplete, I mean if I have a VS Code instance running but not actually coding much it won't happen. |
I'm not sure if this is the same issue, but I've just encountered this type of error on Insiders build. It crashed suddenly, after a minor slowdown. As you can see on the screenshot it shows type error in invalid location. After closing this tab and opening again there isn't any kind of error underlining, the 'problems' tab is empty (even though there are problems with the code). Autocomplete is not showing typescript related stuff - it works as if it didn't know the language. Stacktrace:
|
That debug failure looks like this bug: microsoft/TypeScript#16591 This should be fixed once we pick up the final version of TypeScript 2.4 The problem with misplaced/missing errors seems like: #28630 |
Yes, that's exactly what causes the crash that I've posted. That means that it's probably unrelated to the slowing down thing that I've experienced. However I didn't experience it yet in Saturday's (I think) insiders build, so maybe it got fixed by TS 2.4 or something. It's been running stably for 5 days now in 3 instances with small(50 files) to medium (8k-10k files + dependencies) sized TS projects. I'll observe it for next week or so and close this issue if nothing comes up. If that's okay with you. I'll also run an instance on Ubuntu machine on which I've first noticed this issue it won't be heavily used though. What can I check/test if I come across this problem? I imagine there won't be any crash and/or stacktrace right available because something is probably hanging rather than crashing (hence the forever loading symptom). |
If you are still running into this issue, try collecting the TypeScript server logs. These logs contain detailed information about the time required to compute for each response:
Look for entries in the log for If you can share the ts log file I can take a look through them to see if anything stands out
|
I've noticed it with normal version (without logging enabled unfortunately) but not on insiders. Seems like typescript 2.4 fixes it - I'm closing this. |
This issue has been bugging me since I've started using VS Code, but I've never got around to reporting it.
I tend to not turn off my computer(or turn off programs) for long time and I've noticed that after about a week autocomplete in VS Code starts slowing down and after about 3-5 more days it stops working at all. All it takes to fix it is restart the VS Code, but it looks like some sort of memory leak somewhere.
I didn't notice, however, any memory usage increase over time.
Let me know what can I test to help pinpoint this issue.
The text was updated successfully, but these errors were encountered: