Skip to content

Commit

Permalink
Fix Native Image search path on Windows (#12356)
Browse files Browse the repository at this point in the history
Fallback mechanism had a hardcoded `enso` executable name instead of using an OS-specific one. Hence, lack of NI support on Windows.

# Important Notes
Follow up on #12287.
  • Loading branch information
hubertp authored Feb 25, 2025
1 parent 6790780 commit 7b68882
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ class MainModule(serverConfig: LanguageServerConfig, logLevel: Level) {
)

if (java.lang.Boolean.getBoolean("com.oracle.graalvm.isaot")) {
log.trace("Running Language Server in AOT mode")
log.info("Running Language Server in AOT mode")
} else {
log.trace("Running Language Server in non-AOT mode")
log.info("Running Language Server in JVM mode")
}

private val builder = ContextFactory
Expand Down
3 changes: 3 additions & 0 deletions lib/scala/project-manager/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ logging-service {
},
{
name = "file"
},
{
name = "console"
}
]
default-appender = file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object NativeExecCommand {
} else if (ensoLauncher.map(_.equals("native")).getOrElse(false)) {
val component =
engine.componentDirPath.resolve("..").toAbsolutePath.normalize
val fallbackExecPath = component.resolve("bin").resolve("enso")
val fallbackExecPath = component.resolve("bin").resolve(execName)
if (
fallbackExecPath.toFile.exists() && isBinary(fallbackExecPath, logger)
) {
Expand Down

0 comments on commit 7b68882

Please sign in to comment.