intellij-rust / intellij-rust

Rust plugin for the IntelliJ Platform
https://intellij-rust.github.io
MIT License
4.54k stars 380 forks source link

some attribute macro makes IDE very slow #10778

Open xzbdmw opened 1 year ago

xzbdmw commented 1 year ago

Environment

Problem description

When I use the #[server] to mark a function, it cannot render colors for methods inside the function, and code completion is also very slow.

image

when I comment the macro, everything is back. color, code completion. When I turn off the org.rust.cargo.evaluate.build.scripts,color and normal code completion(outside macro) is back and fast but I loss code completion inside view! macro

image

Steps to reproduce

Maksim20023 commented 1 year ago

Hi! Thank you for the report. To investigate the issue you are facing, please create a minimal project or share the project with described behavior so I can look at what is happening. Additionally, Please capture a CPU snapshot Please remember that snapshot might contain sensitive information (e.g local paths). You can upload your snapshot to our https://uploads.jetbrains.com/. Uploaded files will only be accessible to JetBrains employees, and we guarantee the privacy of the data.