-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
TSServer: RangeError: Index out of range, exits with code: 134 #31209
Comments
we have the same issue. any workaround without disabling tslint? |
Do either of you have tslint rules that you can give to help to reproduce the issue? |
our tslint.json config looks like this:
|
Cool, I've got a focused repro set up which exhibits this bug. |
What I think is happening: because of Potential options:
@mjbvz do you have any ideas? |
I'd prefer the second option since it would not have any negative user impact. Not sure what the best approach is for wrapping stdout in these plugins though. I think they are imported using a normal |
I think changing console in the runtime would do it, that assumes TSServer talks directly via stdout rather than through the console functions (which is my bet) I'll have a look |
…guage service plugins don't accidentally use them and kill the server - fixes microsoft#31209
…guage service plugins don't accidentally use them and kill the server - fixes microsoft#31209
Typescript 3.3.3333. Haven't tried on @latest or @next yet because of that being a pending migration task - but since there is no matching report of this bug, I have low expectation that it's been fixed.
I searched for issues with:
My team is getting the following error:
We were able to find this hint microsoft/vscode#71076 which suggested to me that tslint errors in custom tslint rules themselves can cause this issue. Indeed, when I followed the only tslinter advice in a custom tslint rule code to replace a for-loop with a for-in loop, stability greatly improved. It went from crashing repeatedly and continuously to crashing less frequently - after about an hour of use. But the error output is the same.
If there are additional diagnostics that I can run to help pinpoint this issue, I will try it. If this is known as a dupe and/or already fixed, sorry for the noise.
The text was updated successfully, but these errors were encountered: