-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deno LSP crashing/freezing on a specific project on versions after 1.41.3 #23424
Comments
Do you have many files in your project? Can you show the output of |
Do you have many dependencies? Running into OOM error suggests that you might have a lot of dependencies that are too much to handle. You can tweak |
Its a fairly simple project, I don't think it has enough dependencies to overwhelm the LSP and since LSP works perfectly fine on the older versions of Deno so surely issue is somewhere else. I tried tweaking And the dependencies are listed here with |
Also OOM crash happened only once and I couldn't reproduce it but the LSP is freezing for versions after 1.41.3 |
The timeout on restart happens often when you try to restart while the server is initiailzing. On the latest version, try restarting the VSCode window and waiting till it says |
On the latest Deno version, after restarting the VSCode window it instantly starts and says |
Can you try on |
Tried canary version, seems same. I'm attaching a video showcasing the issue, sorry its a bit lengthy but canary, latest and working versions shown here. |
In your video, it didn't say |
Version: Deno 1.42.0 or higher
Hello! I have a Deno project, more specifically a telegram bot written with @grammyjs, where the LSP works fine with Deno v1.41.3 or earlier, but with version 1.42.0 or later, the LSP freezes. It crashed once, but mostly on LSP restart, it times out.
On start it takes too long at this message on the screen. Loads up after few seconds but with the auto-completion either not working or being very slow.
The one time it crashed, I managed to get a screenshot of the logs:
Since the crash was an OOM, I think it might be a memory leak of some sorts
In other project using the same library, LSP works fine with even the newer versions.
Unfortunately the project source is private, but I'm open to suggestions about what I can do to narrow down the source of the problem to help create a minimal reproduction.
Here's the output of deno info for the main file: https://gist.github.com/alok8bb/895db8e90857dc3a7bc5eeaa93d3b88f
The text was updated successfully, but these errors were encountered: