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

scala.bat cannot handle whitespaces in path on Windows #10030

Closed
scabug opened this issue Nov 4, 2016 · 4 comments
Closed

scala.bat cannot handle whitespaces in path on Windows #10030

scabug opened this issue Nov 4, 2016 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Nov 4, 2016

After installation of scala-2.12.0.msi following problem occurs

c:\Program Files (x86)\scala\bin>scala
"\scala\bin\scala.bat)" kann syntaktisch an dieser Stelle nicht verarbeitet werden.

Fix line 160 and 161 with quotes like

for %%i in ("%~sf0") do set _BIN_DIR=%_BIN_DIR%%%~dpsi
set _SCALA_HOME=%"_BIN_DIR"%..

@scabug
Copy link
Author

scabug commented Nov 4, 2016

Imported From: https://issues.scala-lang.org/browse/SI-10030?orig=1
Reporter: Romeo Disca (thinkrapido)
Affected Versions: 2.12.0-RC2

@scabug
Copy link
Author

scabug commented Nov 7, 2016

@SethTisue said (edited on Nov 7, 2016 8:21:40 PM UTC):
is this a regression since 2.11?

would you like to attempt a fix via https://github.com/scala/scala/pulls?

@scabug
Copy link
Author

scabug commented Jan 30, 2017

@Philippus said (edited on Jan 30, 2017 9:43:59 PM UTC):
scala/scala#5666

I've managed to reproduce this by disabling 8.3 file name creation and then installing in a new directory (with spaces in the directory name):
https://support.microsoft.com/nl-nl/help/121007/how-to-disable-8.3-file-name-creation-on-ntfs-partitions

I don't think it's a regression, most users manage to work around it I guess.
See also this earlier issue:
#7821

@scabug
Copy link
Author

scabug commented Feb 3, 2017

@lrytz said:
I could reproduce all of your findings, thanks!

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

No branches or pull requests

2 participants