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

Wrong --package passed when running tests in workspace subproject #18752

Open
mrexodia opened this issue Dec 24, 2024 · 0 comments
Open

Wrong --package passed when running tests in workspace subproject #18752

mrexodia opened this issue Dec 24, 2024 · 0 comments
Labels
C-bug Category: bug

Comments

@mrexodia
Copy link

Requested information

rust-analyzer version: rust-analyzer version: 0.3.2228-standalone (fa4a40b 2024-12-22)

rustc version: rustc 1.81.0 (eeb90cda1 2024-09-04)

editor or extension: VSCode

relevant settings: N/A (default, didn't change anything)

repository link (if public, optional): icicle-emu/icicle-python#11 (make sure to check out 21531db2e0f87a729ccae5738afc4bbff1be029a)

Bug description

Because of complex reasons it is impossible to execute cargo test in a project that links to pyo3 (specifically with the extension-module feature). As a workaround I put a [workspace] in my Cargo.toml and have a separate tests package to test my rust code. To run the tests I do cargo test --package tests, which works fine (for now I have only an example test, because I ran into this issue).

Unfortunately when clicking the 'Run test' button on the tests/tests.rs file (which is part of the tests package member of the workspace) in VSCode, rust-analyzer passes --package icicle-python (the root package).

@mrexodia mrexodia added the C-bug Category: bug label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

1 participant