DioxusLabs / DioxusLabs/dioxus
css_module proc-macro panics in rust-analyzer
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
`css_module` proc macro panics in rust-analyzer with
`proc-macro panicked: Unable to read css module file: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified."`.
normal build works fine.
i think #4857 is related, though i'm not sure whether making the same solution by making a stub placeholder specifically for rust-analyzer will work.
i guess it would be better than an error
**Steps To Reproduce**
Steps to reproduce the behavior:
- create a new bare-bones project
- create a css file and import it with css_module macro
- enable rust-analyzer in the project
repo created with these steps: https://github.com/l5cs/dx-css-mre
**Expected behavior**
rust-analyzer correctly finds the file with the same proc-macro behaviour as during regular compilation.
**Environment:**
- Dioxus version: 0.7.3
- Rust version: 1.92.0
- OS info: windows
- App platform: any
**Questionnaire**
I'm interested in fixing this myself but don't know where to start.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.