Goldman
Goldman10mo 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.
8 Replies
Deno AI Helper
Deno AI Helper10mo 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
Stokestack10mo ago
Same. This is aggravating. Is there a workaround?
ry
ry10mo ago
Did this just start happening? What version of Deno are you on?
nayeemrmn
nayeemrmn10mo 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
Stokestack10mo 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
Stokestack10mo 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
Stokestack10mo 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...
webbower
webbower2w ago
Hello. I just opened up my laptop hoping to hack on a Deno project and I'm finding a similar error too. Things had been working fine last I worked on this a week ago. I have the latest VS Code, Deno extension, and upgraded from 1.46.3 -> 2.0.5 trying to debug. I have 1 VS Code window open which is a single folder workspace. When I run the "Restart Language Server" command, it shows a modal with the following message: "Command 'Deno: Restart Language Server' resulted in an error Internal error" and the Debug Console for the Deno LS outputs:
Starting Deno language server...
version: 1.29.2 (release, x86_64-apple-darwin)
executable: /Users/mattbower/.deno/bin/deno
Connected to "Visual Studio Code" 1.95.2
Cannot set workspace settings: invalid type: null, expected a boolean
[Error - 4:25:34 PM] Server initialization failed.
Message: Internal error
Code: -32603
[Error - 4:25:34 PM] Deno Language Server client: couldn't create connection to server.
Message: Internal error
Code: -32603
Starting Deno language server...
version: 1.29.2 (release, x86_64-apple-darwin)
executable: /Users/mattbower/.deno/bin/deno
Connected to "Visual Studio Code" 1.95.2
Cannot set workspace settings: invalid type: null, expected a boolean
[Error - 4:25:34 PM] Server initialization failed.
Message: Internal error
Code: -32603
[Error - 4:25:34 PM] Deno Language Server client: couldn't create connection to server.
Message: Internal error
Code: -32603
My .vscode/settings.json is:
{
"deno.enable": true,
"deno.lint": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"files.autoSaveWhenNoErrors": true
}
{
"deno.enable": true,
"deno.lint": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"files.autoSaveWhenNoErrors": true
}