Skip to content
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

LSP-TypeScript types all values as "any" and gets stuck in infinite loop #234

Open
jyc opened this issue Jan 8, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@jyc
Copy link

jyc commented Jan 8, 2024

Hello!

Thanks for making this plugin. It works well most of the time, but it often gets into a state where type checking stops working. When hovering over values everything is typed as any:

image

Opening LSP: Toggle Log Panel shows that LSP-typescript appears to be stuck in an infinite loop; it keeps warning about the same file forever, even when I don't touch my computer.

infinite-loop.txt

@rchl
Copy link
Member

rchl commented Jan 9, 2024

It works well most of the time, but it often gets into a state where type checking stops working. When hovering over values everything is typed as any:

That can happen on project misconfiguration. Usually related to tsconfig.json or missing dependencies or something similar. I can't help you if you can't reproduce it reliably.

Opening LSP: Toggle Log Panel shows that LSP-typescript appears to be stuck in an infinite loop; it keeps warning about the same file forever, even when I don't touch my computer.

I'm not sure why TS would send diagnostics without modifying anything. Maybe there is something updating project files in the background which typescript detects with its internal file watcher. Probably not something that you should worry about. It's certainly not an infinite loop and not for the same file but all open files.

If it's reproducible and you can share your project then feel free to do that. Otherwise I can't tell what's wrong.

@rchl rchl added the question Further information is requested label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants