Closed Xcodo closed 3 years ago
I think that the problem is line 329 and 334 in extension.ts
.
The abortController
is what should abort the download in case of a timeout, but I think that there is a type error at line 334 causing a TypeError
exception (the signal
parameter gets an argument of the wrong type). Not sure of what has changed since I wrote code that broke it but it is probably something in the dependencies,
I might be able to find some time tonight to investigate but if you have some time please feel free to see if you can find a solution.
329 const abortController = new AbortController();
const timeout = setTimeout(() => {
abortController.abort();
}, timeoutMs);
let download = await fetch(browser_download_url, {
334 signal: abortController.signal,
}).catch((err) => {
output.appendLine(err);
throw new Error(
`Language server download timed out after ${timeoutMs.toFixed(
2
)} seconds.`
);
});
Problem is the webpack packaging which mangles the class name of the AbortController.signal property in combination with a type check in node-fetch. I'll try to solve this today.
Should be resolved in v0.3.2, which also include the 0.16.0 server.
Finally got an update that I could verify this! Works like a charm now, thanks @Bochlin.
There was a new version of the
vhdl_ls
released today. The auto update in VSCode failed:I can download the zip file at that URL fine.
My setup is
I might have a go at debugging it tonight unless you say you're on it @Bochlin.