mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 12:32:36 +03:00
Re-enable IR caching in Language Server (#10960)
* Re-enable IR caching in Language Server When an IR loaded from cache is being run through the same passes, "interesting" errors may happen. We must ensure that IR is not run through phases that have already done their transformations. With this change, I'm no longer seeing failures after project startup. * resetScope is also obsolete * address PR review
This commit is contained in:
parent
bc3ab2c7e1
commit
ca2ab1ee02
@ -324,7 +324,7 @@ class MainModule(serverConfig: LanguageServerConfig, logLevel: Level) {
|
||||
.logLevel(logLevel)
|
||||
.strictErrors(false)
|
||||
.disableLinting(false)
|
||||
.enableIrCaches(false) // Until #10921 is fixed
|
||||
.enableIrCaches(true)
|
||||
.out(stdOut)
|
||||
.err(stdErr)
|
||||
.in(stdIn)
|
||||
|
@ -573,9 +573,8 @@ class Compiler(
|
||||
context.updateModule(
|
||||
module,
|
||||
u => {
|
||||
u.resetScope()
|
||||
u.ir(updatedIr)
|
||||
u.compilationStage(CompilationStage.AFTER_PARSING)
|
||||
u.compilationStage(CompilationStage.AFTER_STATIC_PASSES)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user