You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the compiler expects a clean-slate environment and builds the entire program from scratch. However, in the LSP, we want to build the project once and then recompile individual files with the same Context. This isn't possible currently because the compiler returns immediately if it sees a CrateID in the def_map.
Happy Case
We should be able to create a Context once and build the entire project once, then afterwards we should be able to compile a single file given the stored Context.
I assume this is because of the recent change to avoid recompiling the same file when it is required by multiple crate dependencies. We'll still want to avoid recompiling in that case so perhaps we need to store timestamps and check when each file was last changed as well.
Problem
Currently, the compiler expects a clean-slate environment and builds the entire program from scratch. However, in the LSP, we want to build the project once and then recompile individual files with the same
Context
. This isn't possible currently because the compiler returns immediately if it sees a CrateID in the def_map.Happy Case
We should be able to create a
Context
once and build the entire project once, then afterwards we should be able to compile a single file given the storedContext
.Alternatives Considered
No response
Additional Context
Ref #1891
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: