grammyjs / menu

Interactive menus for grammY.
https://grammy.dev/plugins/menu
MIT License
31 stars 11 forks source link

Import @grammyjs/types downloads old version #30

Closed AlexOwl closed 1 year ago

AlexOwl commented 1 year ago

https://esm.sh/@grammyjs/types@v2 redirects to 2.0.0 https://esm.sh/@grammyjs/types@2 redirects to newest 2.12.1

I think it was mistakenly typed v2, because it's necessary to get new patches (including security one)

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: macos aarch64
Version: 1.30.2
Args: ["/opt/homebrew/bin/deno", "lsp"]

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 - 9:07:58 PM] Client Deno Language Server: connection to server is erroring. Shutting down server.
[Error - 9:07:58 PM] Connection to server got closed. Server will not be restarted.

Pull request #29

AlexOwl commented 1 year ago

I can use grammyjs/menu@v1.0.4 because it was changed in v1.1.0 https://cdn.skypack.dev/@grammyjs/types@v2?dts redirects to the newest version 2.12.1

dcdunkan commented 1 year ago

I understand that the version needs to be updated. But FYI, deno panicking is similar to https://github.com/denoland/deno/issues/17640 and its fix have been released as Deno 1.30.3

KnorpelSenf commented 1 year ago

@AlexOwl does this still happen with 1.30.3?

KnorpelSenf commented 1 year ago

Please also review #31. Dont.

KnorpelSenf commented 1 year ago

Closed by #29.