Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

Cannot launch SBT via Cygwin with .sbtopts with CRLF line endings #165

Closed
steinybot opened this issue Jun 1, 2017 · 0 comments · Fixed by #166
Closed

Cannot launch SBT via Cygwin with .sbtopts with CRLF line endings #165

steinybot opened this issue Jun 1, 2017 · 0 comments · Fixed by #166

Comments

@steinybot
Copy link
Contributor

When creating a new project from a Giter8 template on Windows the files will have CRLF line endings, including .sbtopts. This doesn't work when trying to start SBT via Cygwin.

Sample output of the problem:

jason@STEINY-PC /cygdrive/c/Users/jason/source/gnosci master
⚡ sbt
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid initial heap size: -Xms512M

jason@STEINY-PC /cygdrive/c/Users/jason/source/gnosci master
⚡ cat .sbtopts
-J-Xms512M
-J-Xmx1024M
-J-Xss2M
-J-XX:MaxMetaspaceSize=1024M

jason@STEINY-PC /cygdrive/c/Users/jason/source/gnosci master
⚡ file .sbtopts
.sbtopts: ASCII text, with CRLF line terminators

jason@STEINY-PC /cygdrive/c/Users/jason/source/gnosci master
⚡ dos2unix .sbtopts
dos2unix: converting file .sbtopts to Unix format...

jason@STEINY-PC /cygdrive/c/Users/jason/source/gnosci master
⚡ sbt -J-XshowSettings:vm
VM settings:
Stack Size: 2.00M
Min. Heap Size: 512.00M
Max. Heap Size: 1.00G
Ergonomics Machine Class: client
Using VM: Java HotSpot(TM) Client VM

[info] Loading global plugins from C:\Users\jason.sbt\0.13\plugins
[info] Loading project definition from C:\Users\jason\source\gnosci\project
[info] Set current project to gnosci (in build file:/C:/Users/jason/source/gnosci/)

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

Successfully merging a pull request may close this issue.

1 participant