Goldman
Goldman6mo ago

VS Code integration is broken

Hi all. Just opened my Deno project in VS Code and got: Cannot set workspace settings: invalid type: null, expected a sequence [Error - 3:10:18 PM] Server initialization failed. Message: Internal error Code: -32603 It seems like this problem was recently introduced. One recommendation for it was to run deno upgrade But that's a no-go for everyone who installed it with Homebrew. And I just updated all my Homebrew packages; Deno's VS Code integration is still broken.
7 Replies
Deno AI Helper
Deno AI Helper6mo ago
I apologize for the inconvenience, but I wasn't able to find the answer to your issue in the official Deno documentation. However, based on the error message you've provided, it seems like there might be an issue with the workspace settings in VS Code. The error message suggests that a null value is being used where a sequence (array) is expected. While this advice is not based on the Deno documentation, you might want to check your VS Code settings (possibly in .vscode/settings.json within your project) to ensure that all the necessary settings are correctly configured and that no null values are present where they shouldn't be. It's also possible that an extension or a recent update could be causing a conflict, so you might want to review any recent changes. Please double-check the accuracy of this advice, as it's based on the error message you've provided and not on official documentation. If the issue persists, you may want to seek assistance from the VS Code community or the Deno community for further troubleshooting.
Stokestack
Stokestack6mo ago
Same. This is aggravating. Is there a workaround?
ry
ry6mo ago
Did this just start happening? What version of Deno are you on?
nayeemrmn
nayeemrmn6mo ago
GitHub
GitHub - denoland/vscode_deno: Visual Studio Code plugin for Deno
Visual Studio Code plugin for Deno. Contribute to denoland/vscode_deno development by creating an account on GitHub.
Visual Studio Code November 2018
See what is new in the Visual Studio Code November 2018 Release (1.30)
Stokestack
Stokestack6mo ago
Thanks. Deno version: deno 1.36.3 (release, x86_64-apple-darwin) v8 11.6.189.12 typescript 5.1.6 It did just start happening on my Intel Mac, which I hadn't used in a couple of weeks. Hasn't happened on my M1 Mac. I didn't manually update anything, so presumably it was a VS Code update that did it. The question is why Deno is still at version 1.36 if I did a brew update/upgrade.
Stokestack
Stokestack6mo ago
Aaaand now looking here: https://formulae.brew.sh/formula/deno I see Deno at 1.41, but Big Sur is not listed among the supported OSes. That sucks. A lot of Intel Macs are stuck at Mac OS 11.7.10. I'll have to remove the Homebrew Deno and try manually installing.
Homebrew Formulae
deno
Homebrew’s package index
Stokestack
Stokestack6mo ago
That page doesn't show Big Sur as a supported OS, but I did another brew update/upgrade just now and it appears to be upgrading Deno to 1.41. I guess it's building it...