I've begun using RustRover and am really enjoying it but I'm having a somewhat frequent problem where it is caching the (erroneous) compilation of SQLx macros while I'm still iterating on the underlying SQL. I might have a syntax error, or some SQL usage error, and then RR reports it as an error for all eternity until I force invalidate caches and restart/rebuild the IDE completely.
Has anyone experience this issue with macros and the JetBrains IDEs? It's incredibly annoying. I can usually just continue working and do a restart later since cargo build/run
still works normally.
Thanks!
EDIT:
I did notice that something added this to my Cargo toml
[profile.dev.package.sqlx-macros]
opt-level = 3
I don't know if this was SQLx itself, or RR. Could this be an issue?