Skip to content

How to debug why I don't see errors? #17881

Answered by yanshay
yanshay asked this question in Q&A
Discussion options

You must be logged in to vote

I found a way to get this working, not sure if the best/only way but documenting for others who may stumble on this:

  1. set rust-toolchain.toml to
[toolchain]
channel = "esp" # This is the important line
targets = ["xtensa-esp32-none-elf"] # This does not affect the rust-analyzer but for build it works
  1. ln -sf /Users/user/.rustup/toolchains/stable-x86_64-apple-darwin/bin/rust-analyzer ~/.rustup/toolchains/esp/bin/rust-analyzer
    This is so with esp there will still be rust-analyzer found.
    The other options I saw elsewhere to set RUST_TOOLCHAIN didn't work for me. Other things broke. Maybe possible to get it to work.

Found it here: https://www.reddit.com/r/rust/comments/13d2tls/rustanalyzer…

Replies: 3 comments 11 replies

Comment options

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

@Veykril
Comment options

@yanshay
Comment options

Comment options

You must be logged in to vote
8 replies
@yanshay
Comment options

@Veykril
Comment options

@yanshay
Comment options

@Veykril
Comment options

@yanshay
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yanshay
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