gana2188 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

goapp command not working on windows when cloud sdk is installed in directory with spaces. #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Install cloud sdk in a directory with spaces. For example c:\program files

What is the expected output? What do you see instead?
When starting goapp it should be like:

> Go is a tool for managing Go source code.
> Usage:
>        goapp command [arguments]
> ...

I see instead:
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.

What is the output of 'gcloud info'?
Google Cloud SDK [0.9.52]

Platform: [Windows, x86_64]
Python Version: [2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit 
(AMD64)]]
Site Packages: [Disabled]

Installation Root: [C:\Program Files\Google\Cloud SDK\google-cloud-sdk]
Installed Components:
  core: [2015.03.13]
  app-engine-python: [1.9.18]
  dns: [2015.03.13]
  compute: [2015.03.13]
  gcutil-win: [1.16.5]
  gae-python: [2014.05.06]
  core-win: [2015.03.10]
  windows-ssh-tools: [2015.03.13]
  bq-win: [2.0.18]
  gae-go-win: [2014.10.14]
  app-engine-python-extras: [1.9.18]
  bq: [2.0.18]
  gae-python-launcher-win: [1.9.18]
  gsutil: [4.11]
  gsutil-win: [4.6]
  gae-go: [2015.03.13]
  sql: [2015.03.13]
  gcutil: [1.16.5]
  preview: [2015.03.13]
  app-engine-go-windows-x86_64: [1.9.18]
System PATH: [C:\Program Files\Google\Cloud 
SDK\google-cloud-sdk\bin\..\bin\sdk;C:\ProgramData\Oracle\Java\javapath;C:\Progr
am Files (x86)\NVIDIA Corporation
S;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Progra
m Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Git\cmd;C
io 11.0\VC\bin;C:\Program Files (x86)\Microsoft Visual Studio 
11.0\VC\include;C:\Program Files\Sublime Text 2;C:\Program Files 
(x86)\GtkSharp\2.12\bin;C:\Pro
s\;C:\Program Files\Mercurial\;C:\Program Files (x86)\Vargrant\bin;C:\Program 
Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft\Web Platf
d SDK\google-cloud-sdk\bin;C:\Program Files (x86)\Windows 
Live\Shared;C:\Program Files (x86)\GNU\GnuPG\pub;C:\Go\bin;C:\Program Files 
(x86)\Microsoft Visual
Alexander\AppData\Roaming\npm;c:\Users\Alexander\AppData\Local\atom\bin;C:\Users
\Alexander\AppData\Local\atom\bin]
Cloud SDK on PATH: [True]

Installation Properties: [C:\Program Files\Google\Cloud 
SDK\google-cloud-sdk\properties]
User Config Directory: [C:\Users\Alexander\AppData\Roaming\gcloud]
User Properties: [C:\Users\Alexander\AppData\Roaming\gcloud\properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [xxx]
Project: [xxx]

Current Properties:
  [core]
    project: [xxx]
    account: [xxx]
    disable_usage_reporting: [True]
  [compute]
    region: [europe-west1]

Logs Directory: [C:\Users\Alexander\AppData\Roaming\gcloud\logs]
Last Log File: 
[C:\Users\Alexander\AppData\Roaming\gcloud\logs\2015.04.14\22.55.03.057000.log]

There are available updates for some Cloud SDK components.  To
install them, please run:
 $ gcloud components update

Please provide any additional information below.

A possible fix is to change line 46 in goapp.cmd from

%COMSPEC% /C "%CLOUDSDK_ROOT_DIR%\platform/google_appengine\goapp.bat 
--dev_appserver %CLOUDSDK_ROOT_DIR%\bin\dev_appserver.py %*"

to

%COMSPEC% /C ""%CLOUDSDK_ROOT_DIR%\platform/google_appengine\goapp.bat" 
--dev_appserver "%CLOUDSDK_ROOT_DIR%\bin\dev_appserver.py" %*"

Original issue reported on code.google.com by alexluec...@gmail.com on 14 Apr 2015 at 9:18