You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// import type { MessageEntity } from 'https://deno.land/x/grammy@v1.19.2/types.ts';importtype{MessageEntity}from"./a.ts";exporttypeUrlMessageEntity=MessageEntity.TextLinkMessageEntity;
Importing b.ts works fine. Omitting the namespace also works fine. So they seem to relevant and can not be removed from this minimal example.
$ RUST_BACKTRACE=1 deno doc main.ts
============================================================
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: linux x86_64
Version: 1.39.2
Args: ["deno", "doc", "main.ts"]
thread 'main' panicked at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_graph-0.62.2/src/symbols/cross_module.rs:629:60:
called `Option::unwrap()` on a `None` value
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
The mentioned line is still the same in the current main branch so updating to its new release from a few hours ago will not fix this.
reexport creates another panic
Funnily changing to a reexport creates a panic in the deno_doc crate and not anymore in deno_graph.
main.ts
exporttype{MessageEntity}from"./a.ts";
$ RUST_BACKTRACE=1 deno doc main.ts
============================================================
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: linux x86_64
Version: 1.39.2
Args: ["deno", "doc", "main.ts"]
thread 'main' panicked at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_doc-0.85.0/src/visibility.rs:212:66:
called `Option::unwrap()` on a `None` value
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Again changing to b.ts works fine so the deep reexport is required.
deno doc
panics with multiple reexports and namespace.Minimal Example Code
a.ts
b.ts
c.ts
main.ts
Importing
b.ts
works fine. Omitting the namespace also works fine. So they seem to relevant and can not be removed from this minimal example.The mentioned line is still the same in the current main branch so updating to its new release from a few hours ago will not fix this.
reexport creates another panic
Funnily changing to a reexport creates a panic in the
deno_doc
crate and not anymore indeno_graph
.main.ts
Again changing to
b.ts
works fine so the deep reexport is required.The mentioned code line still exists on a different line number on the current main: https://github.com/denoland/deno_doc/blob/0cd916e066edba623c809a3d16a3144d5d07200d/src/visibility.rs#L221
Should I also create an issue in the
deno_doc
repo?The text was updated successfully, but these errors were encountered: