Skip to content
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

Extension fails on startup #1063

Open
winstonDeGreef opened this issue Feb 11, 2024 · 2 comments
Open

Extension fails on startup #1063

winstonDeGreef opened this issue Feb 11, 2024 · 2 comments

Comments

@winstonDeGreef
Copy link

Describe the bug
Extension doesn't start, and logs:

Starting Deno language server...
  version: 1.36.1 (release, x86_64-unknown-linux-gnu)
  executable: /home/winston/.deno/bin/deno
Connected to "Visual Studio Code" 1.85.2
Cannot set workspace settings: invalid type: null, expected a sequence
[Error - 11:20:23 AM] Server initialization failed.
  Message: Internal error
  Code: -32603 
[Error - 11:20:23 AM] Deno Language Server client: couldn't create connection to server.
  Message: Internal error
  Code: -32603 

To Reproduce
For me I just need to load vscode with the extension. I have no idea what is causing this, as I tried using the extension with a blank vscode profile and it still happens.

Screenshots
Screencast from 11-02-24 11:24:24.webm
image
image

Versions

vscode: 1.85.2, deno: 1.36.1, extension: 3.33.3

@Nezteb
Copy link

Nezteb commented Feb 14, 2024

I have this same problem, except the error I see is "invalid type: null, expected a boolean" instead: (this is with "deno.internalDebug": true)

Starting Deno language server...
  version: 1.35.0 (release, aarch64-apple-darwin)
  executable: /Users/noah/.local/share/mise/installs/deno/1.35.0/bin/deno
Connected to "Visual Studio Code - Insiders" 1.87.0-insider
Cannot set workspace settings: invalid type: null, expected a boolean
[Error - 12:59:53 PM] Server initialization failed.
  Message: Internal error
  Code: -32603 
[Error - 12:59:53 PM] Deno Language Server client: couldn't create connection to server.
  Message: Internal error
  Code: -32603 

This looks similar to #994.

My details:

  • vscode_deno version 3.33.3
  • VS Code Insiders:
Version: 1.87.0-insider
Commit: b2598b92d18ea1132e9cd35df776c8c22a7f9730
Date: 2024-02-13T05:48:27.895Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.3.0
  • Deno:
❯ deno --version
deno 1.35.0 (release, aarch64-apple-darwin)
v8 11.6.189.7
typescript 5.1.6

I've verified that deno is in my path, and I've never had issues with VS Code and any other CLI tools.

> which deno
/Users/noah/.local/share/mise/installs/deno/1.35.0/bin/deno

Even setting deno.path doesn't seem to fix it:

"deno.path": "~/.local/share/mise/installs/deno/1.35.0/bin/deno"

EDIT: I guess 1.35.x is just cursed? I couldn't get any of them to work, but bumping up to 1.40.x I can't reproduce this. Soooooo, I'm good to go now? 😅

@shaheermir
Copy link

Had the same issue on 1.31.x. Bumping up to 1.41.0 fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants