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

VSCode LSP Panic in Unsaved Jupyter Notebook #27433

Open
ArmaanAS opened this issue Dec 20, 2024 · 0 comments
Open

VSCode LSP Panic in Unsaved Jupyter Notebook #27433

ArmaanAS opened this issue Dec 20, 2024 · 0 comments

Comments

@ArmaanAS
Copy link
Contributor

Version: Deno 2.1.4

When I open a new Jupyter Notebook in VSCode by doing the following

  • Open Command Palette (Ctrl + Shift + P)
  • Click Create: New Jupyter Notebook
  • Select the Deno kernel

I get the following error messages

image

Here are the Deno Language Server logs

Starting Deno language server...
  version: 2.1.4 (release, x86_64-pc-windows-msvc)
  executable: C:\Users\Student\.deno\bin\deno.EXE
Connected to "Visual Studio Code" 1.96.2
Enabling import suggestions for: https://deno.land
Refreshing configuration tree...
  Resolved Deno configuration file: "file:///E:/Documents/AdventOfCode2024/deno.json"
  Resolved lockfile: "file:///E:/Documents/AdventOfCode2024/deno.lock"

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: windows x86_64
Version: 2.1.4
Args: ["C:\\Users\\Student\\.deno\\bin\\deno.EXE", "lsp"]

thread 'main' panicked at C:\a\deno\deno\resolvers\node\package_json.rs:88:41:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Error - 1:50:08 PM] Client Deno Language Server: connection to server is erroring. Shutting down server.
[Error - 1:50:08 PM] Connection to server got closed. Server will not be restarted.
[Error - 1:50:08 PM] Stopping server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 1:50:08 PM] Stopping server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
Error retrieving config tasks: Error: Client is not running

NB: This only happens when the Notebook is UNSAVED. It works correctly on saved files when there is a deno.json file in the same directory.

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

1 participant