vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

"Cargo has produced more than one matching compilation artifact" when both an rlib and a cdylib are produced #1055

Closed michaeleisel closed 6 months ago

michaeleisel commented 6 months ago

OS: Ubuntu 22.04 VSCode version: 1.85.1 CodeLLDB version: 1.10.0 Compiler: rustc 1.75.0 Debuggee: cargo test

I need to produce an rlib and a cdylib for different things, which I specify in my Cargo.toml file with crate-type = ["rlib", "cdylib"]. However, it seems that CodeLLDB is now unable to determine which one it should use (either would be fine for me). I'd like for CodeLLDB to either just pick one of the two, or to be able to specify which one it should pick.

michaeleisel commented 6 months ago

Ah, actually this is due to having added an additional binary, and can be solved with "filter": {"name": "specific_lib"}