-
Notifications
You must be signed in to change notification settings - Fork 328
Make Native Image opt-out #12515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Native Image opt-out #12515
Conversation
This change makes Native Image build opt-out rather than opt-in. To use JVM mode, IDE has to start with `ENSO_LAUNCHER=shell`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ENSO_LAUNCHER
would be a new user facing API- it has to be documented
- meaning of
ENSO_JVM_OPTS
andENSO_LAUNCHER
combination is not clear - such a combination has to be documented/tested should
ENSO_LAUNCHER
environment variable really become support API for the next release
...la/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/runner/Runner.scala
Outdated
Show resolved
Hide resolved
...la/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/runner/Runner.scala
Show resolved
Hide resolved
...la/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/runner/Runner.scala
Show resolved
Hide resolved
According to @jdunkerley some users are using
|
I agree that |
As the one who argued in favor of --jvm in the past, I shall support the
...and I will!
One question:
|
I'm already on it. |
`--jvm` is passed to project manager and enables JVM mode.
🧪 Storybook is successfully deployed!📊 Dashboard:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I like how the PR is shaping with
--jvm
argument - I still believe context.rs change shouldn't be part of this PR
...la/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/runner/Runner.scala
Show resolved
Hide resolved
...la/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/runner/Runner.scala
Show resolved
Hide resolved
One Google_Api_Test is known to be outdated/broken. Increased timeout for building index - Windows appears to have problems.
As requested.
Ready for review, folks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With 05329f9 it all seems fine to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving changes in app/ide-desktop
Co-authored-by: Jaroslav Tulach <[email protected]>
@@ -276,7 +276,7 @@ object DistributionPackage { | |||
"JAVA_OPTS" -> "-Dorg.jline.terminal.dumb=true" | |||
).run | |||
// Poor man's solution to stuck index generation | |||
val GENERATING_INDEX_TIMEOUT = 60 * 2 // 2 minutes | |||
val GENERATING_INDEX_TIMEOUT = 60 * 4 // 2 minutes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to cleanup or
val GENERATING_INDEX_TIMEOUT = 60 * 4 // 2 minutes | |
val GENERATING_INDEX_TIMEOUT = 60 * 4 // 4 minutes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in ideal world
scala> {
| import scala.concurrent.duration._
| 4.minutes.toSeconds
| }
val res4: Long = 240
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I will add it to next PR. Didn't want to trigger yet another build, it would take ages and this needed to get it to nightly.
Pull Request Description
This change makes Native Image build opt-out rather than opt-in. To use JVM mode, IDE has to start with
--jvm
orENSO_LAUNCHER=shell
.An alternative approach to #12501. Closes #12483.
Likely also addresses #12303.
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.