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

windows 7 C:/Program Files/... #688

Closed
gertcuykens opened this issue Apr 21, 2014 · 7 comments
Closed

windows 7 C:/Program Files/... #688

gertcuykens opened this issue Apr 21, 2014 · 7 comments
Assignees
Labels
gae

Comments

@gertcuykens
Copy link

@gertcuykens gertcuykens commented Apr 21, 2014

testing v671 but on windows it still has path issues.

"C:/Program Files/go_appengine\goapp.bat" serve -host=localhost -port=8080 -admin_port=8000
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Process finished with exit code 1

@dlsniper
Copy link
Member

@dlsniper dlsniper commented May 6, 2014

Unfortunately I don't really know how to fix that. I've asked JetBrains and they said that the issue is on the .bat file. Is there any other way to execute this on Windows? Thanks.

@gertcuykens
Copy link
Author

@gertcuykens gertcuykens commented May 7, 2014

If it would be the .bat file the command line would also have problems right? But the command line does not have any issue? Can you try to just use goapp instead of "C:/Program Files/go_appengine\goapp.bat". So just rely on the environment path settings of both windows and linux?

@aviv1ron1
Copy link

@aviv1ron1 aviv1ron1 commented Jul 21, 2014

I am having the same issue in command line using the goapp command

@enira
Copy link

@enira enira commented Jul 24, 2014

The solution is to go to the 'C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine' folder and edit the 'goapp.bat' file.

At the bottom of the file you will see:
%GOROOT%\bin%EXENAME% %1 %2 %3 %4 %5 %6 %7 %8 %9

Now add some quotes to this last line and your problem should be fixed.
"%GOROOT%\bin%EXENAME%" %1 %2 %3 %4 %5 %6 %7 %8 %9

next,
Go to the 'C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin' and rename the goapp.cmd to goapp.bck

Copy over your newly created goapp.bat file from 'C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine' to 'C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin'
and change the last line again. This time change it to:

"%GOROOT%....\platform\google_appengine\goapp" %1 %2 %3 %4 %5 %6 %7 %8 %9

Now you can run: goapp serve myapp/ from anywhere

Ugly, but works....

@clashion
Copy link

@clashion clashion commented Aug 26, 2014

@enira : thanks!!

one comment though,
for the goapp.cmd in "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin", instead of replacing with goapp.bat from the "...\platform\google_appengine...", I did the following mod on the original goapp.cmd,

cmd /c ""%~dp0..\platform/google_appengine\goapp.bat" %*""

@dlsniper dlsniper added the gae label Oct 19, 2014
@dlsniper dlsniper self-assigned this Oct 22, 2014
@dlsniper
Copy link
Member

@dlsniper dlsniper commented Oct 22, 2014

Nothing that I can do here, goapp.bat should be improved or go appengine installed in a location without spaces in path.

@dlsniper dlsniper closed this Oct 22, 2014
@gertcuykens
Copy link
Author

@gertcuykens gertcuykens commented Oct 22, 2014

Maybe adding a reference link in a FAQ to the solution above would be helpful?

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.