1

I am trying to set up an anchor workspace but I constantly get this error when I create a new repo or do anchor init project_name. I am not getting this error with my previous anchor repos.

Please help i have wasted tons of time for this error.

VS Code Image

3
  • umm possibly run cargo build / cargo run
    – C.OG
    Commented Aug 8, 2022 at 18:25
  • That work's for sure I am dumb at rust if I don't get rust analyser working
    – Pratik.js
    Commented Aug 8, 2022 at 18:30
  • ha not at all, we were all there once. Will post as answer
    – C.OG
    Commented Aug 8, 2022 at 18:38

1 Answer 1

1

Seems like the required crate isn't installed yet.

Try running cargo run or cargo build

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.