Skip to content
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

Log a warning when invalid java properties are being passed by env vars #2843

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Apr 9, 2024

Relevant for #2841

Copy link
Collaborator

@kasiaMarek kasiaMarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Gedochao Gedochao merged commit 68ce528 into VirtusLab:main Apr 9, 2024
75 checks passed
@Gedochao Gedochao deleted the maintenance/extra-warning-on-invalid-jvm-props branch April 9, 2024 15:10
}.flatten
if ignoredJavaOpts.nonEmpty then
System.err.println(
s"Warning: Only java properties are supported in JAVA_OPTS and JDK_JAVA_OPTIONS environment variables. Other options are ignored: ${ignoredJavaOpts.mkString(", ")}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm now getting this message every time I invoke scala-cli. What would be the recommendation? I would like to keep that env var because sbt supports it (I'm using -Xmx1536m -Xms1536m -Xss5m ...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants