denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
94.04k stars 5.23k forks source link

The Deno Language Server server crashed 5 times in the last 3 minutes. #17671

Closed fedor-pavlov closed 1 year ago

fedor-pavlov commented 1 year ago

============================================================ 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: 1.30.2 Args: ["C:\Users\user_123\.deno\bin\deno.EXE", "lsp"] [Uploading logs.txt…]()

thread 'main' panicked at 'internal error: entered unreachable code', cli\lsp\documents.rs:1455:7 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace [Error - 5:47:13 PM] The Deno Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

fedor-pavlov commented 1 year ago

Hi team! I'm pretty sure that the crash relates to imports map. I can consistently reproduce the crash by introduction of imports map to the project.

Here's the example of imports map I have: { "imports": { "/" :"./", "./" :"./", "db" :"./api/db/db.ts", "db/" :"./api/db/", "api" :"./api/mod.ts", "api/" :"./api/", "bot" :"./bot/mod.ts", "bot/" :"./bot/", "settings" :"./settings/mod.ts", "tools/" :"./tools/", "grammy" :"https://deno.land/x/grammy@v1.13.1/mod.ts", "grammy/" :"https://deno.land/x/grammy@v1.13.1/", "grammy_files" :"https://deno.land/x/grammy_files@v1.0.4/mod.ts", "grammy_conversations" :"https://deno.land/x/grammy_conversations@v1.1.0/mod.ts", "grammy_throttler" :"https://deno.land/x/grammy_transformer_throttler@v1.2.1/mod.ts", "grammy_retry" :"https://esm.sh/@grammyjs/auto-retry@1.1.1", "opine" :"https://deno.land/x/opine@2.2.0/mod.ts", "dotenv" :"https://deno.land/x/dotenv@v3.2.0/load.ts", "datetime" :"https://deno.land/std@0.166.0/datetime/mod.ts", "arangojs" :"npm:arangojs", "arangojs/aql" :"npm:arangojs/aql.js", "arangojs/database" :"npm:arangojs/database.js", "arangojs/collection" :"npm:arangojs/collection.js" } }

dsherret commented 1 year ago

This is https://github.com/denoland/deno/issues/17640 and https://github.com/denoland/deno/issues/17651 and #17660.

Sorry, run deno upgrade --canary or downgrade to deno upgrade --version 1.30.0 if you are on M1 (since there are no canary builds).

fedor-pavlov commented 1 year ago

Thank you! It works