Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to config golang plugins in pycharm?

Tags:

macos

go

pycharm

I want to develop Go use pycharm. My golang version is 1.4.2.And my pycharm version is 4.5.2.My operating system is Mac OSX 10.10.3.I have configured the GOROOT and GOPATH on my Mac.Like the pictures: enter image description here

I download the golang plugin from this url. But when I installed the plugin and restart pycharm, the IDE show me that no gopath and goroot. The messages:

enter image description here

what's wrong?

like image 278
Karl Doenitz Avatar asked Jun 26 '15 15:06

Karl Doenitz


People also ask

Where does PyCharm install plugins?

By default, PyCharm stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory.

How do I use Jetbrain plugins?

Open plugin settingsUse the Marketplace tab to browse and install plugins from the JetBrains Plugin Repository or from a custom plugin repository. Use the Installed tab to browse bundled and installed plugins, enable, disable, update, or remove them. Disabling unnecessary plugins can increase performance.


1 Answers

Create environment vairiables gopath and goroot.

For example,

export GOPATH='goHomePath'

export GOROOT='< goRootPath >'
like image 153
Sanjeev Kumar Rai Avatar answered Sep 25 '22 17:09

Sanjeev Kumar Rai