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

Application does not run in a path that contains spaces #24

Closed
timmattison opened this issue Jun 26, 2014 · 1 comment
Closed

Application does not run in a path that contains spaces #24

timmattison opened this issue Jun 26, 2014 · 1 comment

Comments

@timmattison
Copy link

While starting up the application in a fresh environment I got this error:

/Users/timmattison/Google Drive/gu-who/target/universal/stage/bin/gu-who: line 12: cd: /Users/timmattison/Google: No such file or directory
/Users/timmattison/Google Drive/gu-who/target/universal/stage/bin/gu-who: line 12: cd: /Users/timmattison/Google: No such file or directory
/Users/timmattison/Google Drive/gu-who/target/universal/stage/bin/gu-who: line 12: cd: /Users/timmattison/Google: No such file or directory
/Users/timmattison/Google Drive/gu-who/target/universal/stage/bin/gu-who: line 356: cd: /Users/timmattison/Google Drive/gu-who/gu-who/..: No such file or directory
Error: Could not find or load main class play.core.server.NettyServer

It looks like double quotes might fix that (unless someone has double quotes in the dir name) or some other kind of escaping.

@rtyley
Copy link
Member

rtyley commented Jun 29, 2014

I think this an issue specific to the sbt launcher script (which is not part of the gu:who project) - looks like you're using the Mac OS X version? I tried a quick run on Ubuntu Linux in a directory with spaces - it worked fine:

$ mkdir "get spaced"
roberto@candle:~/development$ cd get\ spaced/
roberto@candle:~/development/get spaced$ git clone git@github.com:guardian/gu-who.git
Cloning into 'gu-who'...
remote: Reusing existing pack: 906, done.
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 915 (delta 3), reused 0 (delta 0)
Receiving objects: 100% (915/915), 366.80 KiB | 265.00 KiB/s, done.
Resolving deltas: 100% (492/492), done.
Checking connectivity... done.
roberto@candle:~/development/get spaced$ cd gu-who/
roberto@candle:~/development/get spaced/gu-who$ sbt
[info] Loading project definition from /home/roberto/development/get spaced/gu-who/project
[info] Set current project to gu-who (in build file:/home/roberto/development/get%20spaced/gu-who/)
[gu-who] $ run
[info] Updating {file:/home/roberto/development/get%20spaced/gu-who/}root...
[info] Resolving jline#jline;2.11 ...
[info] Done updating.

--- (Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Ctrl+D to stop and go back to the console...)

[info] Compiling 23 Scala sources and 1 Java source to /home/roberto/development/get spaced/gu-who/target/scala-2.11/classes...
[warn] warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
[warn] 1 warning
[info] play - Application started (Dev)

--- (RELOAD) ---

[info] play - Application started (Dev)
[info] application - Asked to audit @guardian
[info] application - Updating Git repo with fetch...
[info] application - 2fa_disabled count: Success(5)
[info] application - Open issue count: Success(2)
[info] application - bots team count: Success(4)
[info] application - Found 153 sponsored usernames
[info] application - User count: Success(142)
[info] application - availableRequirementEvaluators=List(lib.FullNameRequirement$$anon$3@46d32009, lib.TwoFactorAuthRequirement$$anonfun$userEvaluatorFor$1$$anon$2@4edc5332, lib.SponsorRequirement$$anon$1@62da2010) Map(1 -> 2, 0 -> 140)
[info] application - 'all' team : permission=pull people-repo-access=true

I'll close this issue as it's unrelated to gu:who, but it might be worth you raising it against the https://github.com/sbt/sbt-launcher-package project if you can isolate this down to a small test case.

@rtyley rtyley closed this as completed Jun 29, 2014
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

2 participants