Skip to content

VSCode Remote SSH support #7

@eigmax

Description

@eigmax

After I install zkm toolchain, and connect the repo under remote vscode mode, the rust-analyzer can not finish cargo check, the error is:

--- stderr
  [zkm]  error: failed to run `rustc` to learn about target-specific information
  [zkm]  
  [zkm]  Caused by:
  [zkm]    process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -C target-cpu=mips32r2 -C target-feature=+crt-static -C link-arg=-nostdlib -C link-arg=-g -C link-arg=--entry=main --target mipsel-zkm-zkvm-elf --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit status: 1)
  [zkm]    --- stderr
  [zkm]    error: error loading target specification: could not find specification for target "mipsel-zkm-zkvm-elf"
  [zkm]      |
  [zkm]      = help: run `rustc --print target-list` for a list of built-in targets

The root cause is the rustc/cargo is not included in the $PATH. how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions