Skip to content

PATH env is incorrect for "Run Test" on mac osx #19720

Open
@zhiqiangxu

Description

@zhiqiangxu

rust-analyzer version: v0.3.2319.

When I click "Run Test", I got the error below:

Image

But if I run the same command in the terminal, it works:

Image

Here is where the cargo binary is located:

% which cargo
/Users/alan.xu/.cargo/bin/cargo

So I think the PATH env is incorrect for "Run Test".
(btw, I'm using zsh, and the PATH is set in ~/.zshrc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-vscodevscode plugin issuesC-supportCategory: support questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions