-
Notifications
You must be signed in to change notification settings - Fork 44
TypeScript service often gets stuck when the plugin is enabled #32
Comments
Same here with vs2017 and typescript only. I am planing to move to tslint-plugin, so it could be the case, that the issue you are reporting is unrelated to the plugin. |
Please provide info like:
|
I'm also experiencing this issue. My information is:
|
Can someone please share an example workspace where this happens so I can investigate |
The issue with this issue (pun!) is that it doesn't happen every time in the exactly the same parts of the project. It is present from 0.1.x to 0.3.x. What I did notice is that it happens (for myself) during editing of somewhat complex code: generics, functions that call other functions, union types, ... But it is annoying to restart VSCode every 20-30 minutes or so (at least, for myself on a large project). |
I also saw this issue multiple times and eventually switched back to the old extension. So far it seems quite random in nature and so trying to provide repro steps is difficult. |
I'm also experiencing this issue. My information is: Plugin version: 1.0.0 |
I believe that the chance of happening is increased when there are multiple files displayed side-by-side (2, 3, 4) in VSCode. |
Still an issue with |
In my case, when i disable network adapter or work offline everything works just fine, the problem is when i have internet, type checking and linting break out and no longer work, i need go offline if i want do anything. |
I think this issue is related to memory leak, because stuck not only VS Code - stuck completely computer. plugin v1.2.3 I have 16 GB of memory on my notebook, in normal cases it uses about 3GB of memory with empty swap file, and when this issue happens swap file more then 50% full. P.S. This issue never happens with disabled the plugin. |
I watched this issue again. The memory sharply fills from 3 GB to 16 GB and begins to be written to the swap file. It all happens in about 2 seconds. @mjbvz, I can run some records of typescript server work, if you need this info. |
@KostyaTretyak Yes I can't repo this. What would be most helpful is if you could try collecting a heap snapshot of the process when this happens:
|
@mjbvz, I've seen this issue twice more, but I can't catch the moment when it can be logged. And, frankly, I doubt it can be recorded with Chrome DevTools, since dumping a memory dump takes longer than running out of memory and a laptop stuck. Moreover, right after the stuck laptop and reboot it, I do the same work, but I can't repo this. |
Closing as TSLint has been deprecated in favor of ESLint. We are archiving this repo as this project is no longer maintained |
Uh oh!
There was an error while loading. Please reload this page.
I don't yet know the cause or how to reproduce it; but when using the plugin in my work project, the typescript service may get stuck while typing after showing some lint errors and then never update again until it is restarted. It's not just the lint messages that get stuck, but the actual ts compiler service; unused variable hints, autocomplete, etc stop working, or rather, get stuck in a state where it's as if they're seeing an old snapshot of the file being edited.
The text was updated successfully, but these errors were encountered: