rust-lang / rust-lang/rust-clippy
Dev setup for intellij did not work properly on Mac
Open
Nobody has claimed this yet.
C-bug
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Summary
After configed as clippy contributing setup for intellij documented, it still did not work properly
- intellij can't resolve path of local rust crate
2. still can't find declaration, e.g. `rustc_hir::Expr`
Reproducer
I tried this code:
mkdir ~/project
cd project
git clone git@github.com:rust-lang/rust.git
git clone git@github.com:rust-lang/rust-clippy.git
cargo dev setup intellij --repo-path ../rust
Version
rustc 1.66.0-nightly (4b8f43199 2022-10-19)
binary: rustc
commit-hash: 4b8f4319954ff2642690b9e5cbe4af352d095bf6
commit-date: 2022-10-19
host: aarch64-apple-darwin
release: 1.66.0-nightly
LLVM version: 15.0.2
Additional Labels
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the IntelliJ Rust setup instructions in CONTRIBUTING.md and the cargo dev setup intellij --repo-path ../rust entry point. Reproduce the unresolved local crate paths and missing rustc_hir::Expr declaration on the reported Mac setup, then document or correct the setup so IntelliJ resolves both.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100