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

Argus panics when analysing code in an example crate #48

Open
wprzytula opened this issue Nov 10, 2024 · 2 comments
Open

Argus panics when analysing code in an example crate #48

wprzytula opened this issue Nov 10, 2024 · 2 comments

Comments

@wprzytula
Copy link

Problem

Argus panicked when analysing code in an example crate.

Logs

OS: linux (6.11.5-100.fc39.x86_64)
VSCode: 1.95.1
Error message

thread 'main' panicked at /home/wojciech/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc_plugin-0.10.0-nightly-2024-05-20/src/cli.rs:184:10:
internal error: entered unreachable code: unexpected cargo crate type: example
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/std/src/panicking.rs:652:5
   1: core::panicking::panic_fmt
             at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/core/src/panicking.rs:72:14
   2: rustc_plugin::cli::only_run_on_file
   3: rustc_plugin::cli::cli_main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Full log: https://paste.rs/vm3sL

@wprzytula
Copy link
Author

Analogous to #43.

@gavinleroy
Copy link
Collaborator

Yes, currently Argus panics if the crate being analyzed is not the main application. This is a limitation of the underlying rustc_plugin crate, or at least our integration with it 😅

It's on my long list of todos :)

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

2 participants