I tried to run a simple Rust test in IntelliJ.
The test command IntelliJ uses is:
cargo test --color=always --package myproject-rust --lib mycode::tests --no-fail-fast -- --format=json -Z unstable-options --show-output
The test failed with the error:
error: the option `Z` is only accepted on the nightly compiler
It seems IntelliJ automatically added the -Z unstable-options
in the command.
I triggered the test using the small green play button at the left side of my test function:
My test runs fine from the command line.
There is no way I can remove the -Z unstable-options
from the test configuration.
What can I do to remove it?
test --package ansi-color-codec --lib codec::test_foo -- --exact
– Xenontest --color=always --package ansi-color-codec --lib codec::foo --no-fail-fast -- --format=json --exact -Z unstable-options --show-output
. Looks like a bug. – Xenonorg.rust.cargo.test.tool.window
enabled in Help | Find Action | Experimental Features enabled? If yes, try to disable it and check if it helps. It could also help to upgrade to the latest plugin version. – Candlepin