Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup IntelliJ IDEA for Google App Engine Go development?

Tags:

I want to use IntelliJ IDEA IDE for developing GAE Golang apps. I know I need to download the program and the Golang plugin, but beyond that I am lost. Is there a tutorial available on how to configure IDEA for GAE Go development?

I have my project set up in GOPATH/src/... folder, App Engine SDK is configured and I can run my project from command line using goapp. However, I would like to be able to setup an IDE for syntax checking and be able to run and debug the app from the IDE, rather than resort to using the console.

like image 550
ThePiachu Avatar asked May 21 '14 05:05

ThePiachu


People also ask

How do I use Google application credentials in IntelliJ?

From the main menu, select Tools | Upload App Engine Application. In the dialog that opens specify the deployment configuration settings and click Run. During the deployment IntelliJ IDEA might prompt you for your Google Account credentials.

How do I run Google App Engine project locally?

Running your application locally Select File > Open to open the project you want to run. Browse to the directory containing your project. Select Tools > Cloud Code > App Engine Run on a local App Engine Standard dev server.


1 Answers

Right click your project in the left pane and select 'Open Module Settings'. From there:

  • go to Project Settings -> Project
  • New SDK -> select the path to the goroot directory of the appengine sdk
  • Apply and you should have completion for the standard go appengine stuff.

enter image description here

If you also want completion for packages that you download using goapp get XXX, go to 'Platform Settings -> SDKs' and add the appropriate path there. It should be somewhere under gopath.

enter image description here

like image 67
mbonnin Avatar answered Oct 16 '22 06:10

mbonnin