-
Notifications
You must be signed in to change notification settings - Fork 443
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
Binary broken when run in path with spaces #577
Comments
This is interesting. We have tests for this, so this could be a configuration or system issue. Can you share a sample project? cc @jroper |
I think the bug is here when adding |
Is jar name wrong? |
no but probably need quotes as |
Can you provide a pr with a regression test for this? |
can you point me to the tests that already test this folder with spaces stuff? |
Sure :) https://github.com/sbt/sbt-native-packager/tree/master/src/sbt-test/jar/launcher-jar There's a wiki page explaining how to run the tests. Basically it's |
Ok, tried to reproduce this and force the test scripts to use a target/stage folder containing spaces but did not get there. Asserts were still expecting default target/stage folders. The only solution I found to reproduce the issue is renaming but so far no luck on fixing the bash script, quotes don't help as then I get this:
|
So there needs to be a more sophisticated way of dealing with whitespaces on
|
It's not on windows but macosx / linux I have this problem and I have a way to break the test by copying |
Ah sorry, confused it with another issue. However you can test it on windows as well (only if you have time).
there are no solutions for this on the internet? If this is really not possible, then we should add docs for it. |
Just give me some time :-p |
You have all in the world ;) |
patch on it's way, just upped my bash skills and know how to fix this :-) |
@muuki88 just to confirm that the bat file is also broken on windows, looking into it |
re #577 fix for running the bash file in a path with spaces
@muuki88 I see you closed it, but can't figure out how it was fixed. I'm having this problem on windows with a Play app. |
That's weird. There is a fix with passing test. Either it's a regression, a different bug or the tests where not exhaustive. |
I ended up enabling |
Built a zip built with
universal:packageBin
on a sbt project withI extracted the resulting zip into
/Users/me/My Downloads/myapp
.When starting the binary in OS X I get the following error:
(other ways of packaging and other operating systems might also have this issue
The text was updated successfully, but these errors were encountered: