I am using PyCharm 3.1.1 and I have installed the Go plugin for IntelliJ Idea. I did export GOROOT=$(go env GOROOT)
to prevent PyCharm from complaining about missing GOROOT
environment variable.
Now I was able to create a sample project, but the run command complains:
Error running untitled1.go: No Go Sdk defined for this project
On other sites I found that I should do something like:
Go to the
File -> Project Structure
and configure Go SDK by clicking+
button and selecting/usr/lib/go/
folder.
But I don't have File -> Project Structure
menu item.
How to make PyCharm work with the Go plugin?
GoUltimateThe Go plugin provides support of all the features that are available in GoLand, the standalone IDE for Go developers. With the Go plugin, you can work with Go tools, vendoring, Go modules, download new Go SDK versions right from the IDE, and use other Go-specific features.
If the Go plugin is not installed, in the Plugins dialog, find the Go plugin and click Install. Click OK to close the Plugins dialog. In the New Project dialog, select New project from the list of available projects. Ensure that Go is selected as a project language in the Language list.
By default, PyCharm stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory.
You can get most of the way there with External Tools. There is no way to replace the 'Run' button until the next version of the plug-in, per Issue #728.
To set up your external tools, go to PyCharm -> Preferences (command+,) -> Tools -> External Tools -> +
Fill in the form:
Hit OK. Use it from the menus:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With