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.

jvmArgs comma separation breaks for certain JVM arguments

See original GitHub issue

Given PIT 1.4.2 (and quite likely other versions as well) it is impossible to pass any JVM arguments that themselves have comma separation. Such an example is -XX:CompileCommand=command,method[,option] In our case it’s necessary to affect how JIT is performed and thus it doesn’t work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
plastic-karmacommented, Mar 31, 2022

Guess the only question is how it should behave if both parameters are supplied.

One option could be to just merge them all to a single list.

If you’ve got time to put a pull request together and think about it, that would be great.

I’ll do that. It is going to take a few days, but I am interested. 😃

0reactions
hcolescommented, Mar 31, 2022

Do I understand your idea correctly: Before we are passing the argument to joptsimple, we replace the commas with a special character within the escape sequence {} and after we get the values out of joptsimple we revert that and remove the escape markers? (I can give that a try)

That was the idea, but it was a stupid one as you are quite correct, we could just have a param without the .withValuesSeparatedBy call.

Guess the only question is how it should behave if both parameters are supplied.

If you’ve got time to put a pull request together and think about it, that would be great.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set JVM arguments in IntelliJ IDEA? - Stack Overflow
Intellij allows you to specify two types of arguments when running a Java program: VM Options. Enables you to modify attributes of the...
Read more >
Include the Java agent with a JVM argument
This document describes how to pass the -javaagent argument to the JVM for your framework. This installation step ensures the agent is included...
Read more >
Kubernetes: Wrongly parsing JVM arguments when using ...
jvm -arguments) is splitting the value by comma. The problem is that some values need to keep the comma characters, for example, using:...
Read more >
The java Command - Oracle Help Center
The content of the JDK_JAVA_OPTIONS environment variable is a list of arguments separated by white-space characters (as determined by isspace() ). These are ......
Read more >
Specify JVM Options - Pants
You need to specify command-line options for the JVM when running a Scala or ... options can also be separated by line (just...
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