zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.45k stars 3.12k forks source link

Rust-analyzer parameter "extraTestBinaryArgs" #19822

Open DevNulPavel opened 3 weeks ago

DevNulPavel commented 3 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Hello

It looks like extraTestBinaryArgs parameter does not applying for testing task which i start from "play" button on the left side near the code.

Even after Zed's restart i am getting the same result.

Environment

Zed: v0.158.2 (Zed) OS: macOS 15.0.1 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Screenshot 2024-10-28 at 12 47 41 Screenshot 2024-10-28 at 12 43 54 Screenshot 2024-10-28 at 12 50 29

If applicable, attach your Zed.log file to this issue.

Zed.log

SomeoneToIgnore commented 3 weeks ago

That's because Zed's tasks have nothing to do with rust-analyzer's tasks: Zed constructs cargo commands based on tree-sitter queries and a few language plugin declarations.

https://zed.dev/docs/tasks#binding-runnable-tags-to-task-templates might help, you can do something like this:

But otherwise, not sure what we can do about this issue formulated this way.

osiewicz commented 3 weeks ago

I mean, this issue is actionable if we formulate it as "allowing user to pass extra args to Rust tests", which we could achieve with language.tasks section of settings. It will not have anything to do with RA though.

notpeter commented 3 weeks ago

Related: