Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Rust-Analyzer seems to break incremental compilation in Debug mode (e.g., when using dioxus serve) #90

Open
d4h0 opened this issue Jan 11, 2023 · 2 comments

Comments

@d4h0
Copy link

d4h0 commented Jan 11, 2023

Hi,

Rust-Analyzer seems to break incremental compilation in Debug mode, when the target is Wasm (see rust-lang/rust-analyzer#12551).

A workaround is, to create and use a separate build profile, e.g. by adding the following to the Cargo.toml of the project:

[profile.dev2]
inherits = "dev"

...and then execute dioxus serve --profile dev2.

Without that, I had to wait 30 to 60 seconds after basically every change (with a separate profile it takes ~800 ms).

I think, until the above issue is fixed, the workaround should be added to the hot-reload section of the guide.

@d4h0
Copy link
Author

d4h0 commented Jan 11, 2023

There seems to be currently a bug, which result in the above not working properly (see #91)

@d4h0
Copy link
Author

d4h0 commented Jan 11, 2023

I have found a workaround for #91:

Instead of switching Dioxus to a different profile, I switched Rust-Analyzer to another profile.

I've described how to do that in the following comment: rust-lang/rust-analyzer#6007 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant