question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot pass jvm parameters to dotr

See original GitHub issue

When calling dotr (without launching the repl) we cannot pass JVM arguments such as -Xmx512. We should probably support the -JXmx512 notation the dotc supports. All flags starting with -J should be passed to the JVM without the J.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolasstuckicommented, Nov 28, 2017

@jiminhsieh if you are still interested, now you can have a stab at it.

1reaction
nicolasstuckicommented, Nov 28, 2017
dotr [-repl|-run] <jvmopt>* [<Main> <main-args>*]

<jvmopt> = -classpath <some-classpath>
         | -J<jvm-option>

Run the REPL if -repl is set or if -run is not set and [<Main> <main-args>*] not is present. Run the app if -run is set or [<Main> <main-args>*] is present.

Running should call java <jvmopt-transformed>* <Main> <main-args>* where jvmopt-transformed removes the J from -J<jvm-option> and merges the classpaths toghether. -classpath and the dotty library classpath (currently in the script) in that order.

If several -classpath are found in <jvmopt>* then keep the last one. Maybe emit a warning.

For the REPL keep -classpath as is.

@allanrenucci WDYT?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specifying JVM arguments when calling a jar file?
I want to specify some JVM arguments when calling ...
Read more >
How to pass JVM options to Ranger services
How to pass JVM options to Ranger services · In Cloudera Manager Home, select Ranger, then choose Configuration. · On Configuration, in Search,...
Read more >
How to pass JVM arguments in Java web start? — oracle-tech
The reason your jvm argument was not passed through is that JWS only accepts a limited selection of parameters in the 'java-vm-args' property....
Read more >
Setting JVM options | Elasticsearch Guide [8.5] | Elastic
Elasticsearch security principles · Start the Elastic Stack with security enabled automatically · Manually configure security · Set up minimal security · Updating ......
Read more >
The Definitive Guide to Clojure on the JVM - Eric Normand
Boot and depenencies; Running Java with options; The Java object model ... We will go through the different parts—the JVM, the JDK, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found