-
Notifications
You must be signed in to change notification settings - Fork 530
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
The .jvmopts file prohibits sbt even starting #814
Comments
I can reproduce this if I have a conflicting GC configuration specified in the environment in
Do you have something similar? I don't think it's particularly good practice to have these sorts of configuration hanging around in your environment, but OTOH it's not great that it stops SBT from starting up. @joroKr21 you added the garbage first collection option to |
Ah, thanks for the diagnosis! I have a bunch of stuff in If @joroKr21 has no strong feelings, I'd suggest we merge my PR, otherwise just document it. It didn't take me too long to work out that |
These days Personally I think your environment is broken. Any Java application which specifies different GC options from the ones you've picked will break in the same way. For me the question is: are the benefits of specifying the g1 collector big enough for us to not care about a broken environment. |
I can certainly accept that! If I recall correctly, I added the |
I don't have strong feelings about the GC. I added it because it was the first combination of options that fixed some spurious errors due to scala/bug#10552 but now I am almost certain that the stack option is the important one. That means that the memory requirements could probably be reduced to their previous levels. |
If you have locally configured a different GC it would prevent sbt from starting. Fixes #814
I have no idea how specific this problem is, but when trying to start
sbt
from a newly-clonedshapeless
directory, I get the error message,The problem appears to be the
.jvmopts
file, particularly the line,removing which allows
sbt
to start. Someone more familiar with JVM options could undoubtedly give more insight.Other potentially relevant details:
The text was updated successfully, but these errors were encountered: