noxifoxi
noxifoxi
DDeno
Created by noxifoxi on 8/28/2023 in #help
Deno language server stops working in VS Code
After some random time the language server stops working and I suddenly get code errors like this:
An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.deno-ts(2705)
An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.deno-ts(2705)
(Even when I use "deno.enablePaths": [ "src" ] in settings.json) Increasing "deno.documentPreloadLimit" (to something like 10000) just delays the problem a little bit. the language server output:
Starting Deno language server...
version: 1.36.3 (release, x86_64-unknown-linux-gnu)
executable: /home/nox/.deno/bin/deno
Connected to "Visual Studio Code" 1.81.1
Auto-resolved configuration file: "file:///home/nox/dev/deno.json"
Resolved lock file: "file:///home/nox/dev/deno.lock"
Enabling import suggestions for: https://deno.land
Hit the language server document preload limit of 1000 file system entries. You may want to use the "deno.enablePaths" configuration setting to only have Deno partially enable a workspace or increase the limit via "deno.documentPreloadLimit". In cases where Deno ends up using too much memory, you may want to lower the limit.
Server ready.
client asked to cancel request 4, but no such pending request exists, ignoring
client asked to cancel request 7, but no such pending request exists, ignoring
client asked to cancel request 419, but no such pending request exists, ignoring
successfully cancelled request with ID: 627
Unable to send result to client.
client asked to cancel request 697, but no such pending request exists, ignoring
Starting Deno language server...
version: 1.36.3 (release, x86_64-unknown-linux-gnu)
executable: /home/nox/.deno/bin/deno
Connected to "Visual Studio Code" 1.81.1
Auto-resolved configuration file: "file:///home/nox/dev/deno.json"
Resolved lock file: "file:///home/nox/dev/deno.lock"
Enabling import suggestions for: https://deno.land
Hit the language server document preload limit of 1000 file system entries. You may want to use the "deno.enablePaths" configuration setting to only have Deno partially enable a workspace or increase the limit via "deno.documentPreloadLimit". In cases where Deno ends up using too much memory, you may want to lower the limit.
Server ready.
client asked to cancel request 4, but no such pending request exists, ignoring
client asked to cancel request 7, but no such pending request exists, ignoring
client asked to cancel request 419, but no such pending request exists, ignoring
successfully cancelled request with ID: 627
Unable to send result to client.
client asked to cancel request 697, but no such pending request exists, ignoring
Restarting VS Code fixes that for a short amount of time. How do I fix this issue?
52 replies