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

Java options can only be set with JAVA_OPTS #167

Open
sloshy opened this issue May 19, 2020 · 3 comments
Open

Java options can only be set with JAVA_OPTS #167

sloshy opened this issue May 19, 2020 · 3 comments

Comments

@sloshy
Copy link

sloshy commented May 19, 2020

I have a project with a very large case class that I am using with Shapeless (198 fields) to derive something (specifically, a Doobie Read for my case class). In this project I have a .jvmopts file to set the stack size for SBT/scalac so that my code can compile. By itself, this fails to work, but if I specify the contents of the file as export JAVA_OPTS="..." instead, it works. It would be great to have some better documentation on this feature, as well as more support for the ways the official sbt launcher can set stack size.

@sloshy sloshy changed the title Stack size can only be set with JAVA_OPTS Java options can only be set with JAVA_OPTS May 19, 2020
@SethTisue
Copy link

SethTisue commented May 20, 2020

I expect this will bite people fairly often in real life, as it's not at all uncommon for a repo to have a .jvmopts file (I have 35 such repos in the collection in my home directory)

@cbrunnkvist
Copy link

ouch, @SethTisue yes this will bite people. I've already had my share of issues with "sbt launcher script is not the official launcher script".

@clutch-justin
Copy link

I just switched to coursier and ran face first into this when I can no longer remote debug with sbt -jvm-debug 5005 and wondered what went wrong

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

No branches or pull requests

4 participants