Skip to content

Unable to Run cargo check with --package xla --no-default-features --features "trn" #14620

Closed Answered by xanderdunn
xanderdunn asked this question in Q&A
Discussion options

You must be logged in to vote

I switched to VSCode to remove vim and the coc-rust-analyzer plugin as a variable here. My settings.json:

{
    "rust-analyzer.cargo.extraArgs": [
        "--package", "xla"
    ],
    "rust-analyzer.cargo.noDefaultFeatures": true,
    "rust-analyzer.cargo.features": [
        "trn"
    ],
}

However, rust-analyzer logs show it is still trying to build the kernels package. I believe this is because rust-analyzer is issuing this command:

cd "/Users/xander/dev/Kholinar" && "/Users/xander/.cargo/bin/cargo" "check" "--workspace" "--message-format=json-diagnostic-rendered-ansi" "--manifest-path" "/Users/xander/dev/Kholinar/Cargo.toml" "--all-targets" "--no-default-features" "--features" "trn" "…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@xanderdunn
Comment options

@lnicola
Comment options

@xanderdunn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by xanderdunn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants