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

Not able to install go lang plugin on intellij 2017.2 community edition #2897

Closed
shruti1701 opened this issue Jul 19, 2017 · 19 comments
Closed

Comments

@shruti1701
Copy link

shruti1701 commented Jul 19, 2017

IDE name and version:
IntelliJ IDEA 2017.2
Build #IC-172.3317.76, built on July 15, 2017
JRE: 1.8.0_152-release-915-b5 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.10.0-28-generic

After upgrading my intellij to 2017.2 i am getting the below error
Unknown Module Type
Cannot determine module type ("GO_MODULE") for the following module:"work"
The module will be treated as a Unknown module.

So i uninstalled the go plugin and tried to re-install it but i am not able to find it from the repositories.
Also i tried to download the plugin( 172.3317-EAP-CANDIDATE-SNAPSHOT.20 and172.3198.6.18)
from this url https://plugins.jetbrains.com/plugin/9568-go.
And tried with install plugin from disk options , but that does not work either

@dlsniper
Copy link
Member

dlsniper commented Jul 19, 2017

There are currently no plans to make this plugin compatible with 2017.2 as far as I know.

Also I don't have the time or resources to work on the open-source version so any contributors are welcomed.

The JetBrains maintained one is not going to compatible with the community version. You can use https://www.jetbrains.com/go/ if you want as a much better alternative than this plugin.

If you want to have this plugin working in IntelliJ community 2017.2, please send a PR. Thank you.

@josh-padnick
Copy link

I haven't yet explored how well it works, but here's how I at least go Golang functionality working again in in IntelliJ 2017.2:

  1. Go to Preferences... > Plugins

  2. Click on Browse repositories...

image

  1. Type "Go" and select the official JetBrains Go plugin:

image

At first blush, it feels like an improvement over the previous community-maintained plugin.

@dlsniper
Copy link
Member

Please note that the above plugin works for only in the Ultimate Edition, not in the Community one.

You can read more about the plugin here https://blog.jetbrains.com/go/ and you can find a part of the differences here https://www.jetbrains.com/help/go/faq.html#d3e55

@jerome-laforge
Copy link

Unfortunately, Goglang is not fully compatible with all plugins (e.g. gitflow plugin)

@dlsniper
Copy link
Member

dlsniper commented Jul 24, 2017

You need to install the Task Management plugin, restart the IDE then install the GitFlow plugin and it will work.

@dlsniper
Copy link
Member

If you have any other plugins that don't work, please feel free to open an issue here: https://youtrack.jetbrains.com/issues/Go

@jbernhardsch
Copy link

Any solution for this issue?
Thanks

@dlsniper
Copy link
Member

Yes, see my first comment on the issue #2897 (comment)

@bmarguer
Copy link

Opened Issue #GO-4191 for Ant support.
Thanks

@Disastorm
Copy link

Disastorm commented Aug 8, 2017

I found a workaround.
In intellij-go-0.171.1931.jar you change META-INF/plugin.xml file
from:

  <idea-version since-build="171.1834" until-build="171.*"/>

to:

  <idea-version since-build="171.1834" until-build="172.*"/>

The plugin seems to be working after this.

I'm not sure what you need to change in this repo to do that.

@suztomo
Copy link

suztomo commented Oct 31, 2017

@Disastorm
Thanks, it worked:

Downloaded Go-0.13.1947.zip from https://plugins.jetbrains.com/plugin/5047-go-language-golang-org-support-plugin

mkdir /tmp/foo
cd /tmp/foo
unzip ~/Downloads/Go-0.13.1947.zip
mkdir intellij-go-0.13.1947.until-build-172
cd intellij-go-0.13.1947.until-build-172/
unzip ../Go/lib/intellij-go-0.13.1947.jar
vim META-INF/plugin.xml # edit for the above
rm ../Go/lib/intellij-go-0.13.1947.jar
zip -r ../Go/lib/intellij-go-0.13.1947.jar .
adding: colorscheme/ (stored 0%)
adding: colorscheme/Darcula - dlsniper.xml (deflated 84%)
adding: com/ (stored 0%)
...
adding: META-INF/plugin.xml (deflated 64%)
cd ../
zip -r Go.zip Go
adding: Go/ (stored 0%)
adding: Go/.DS_Store (deflated 94%)
adding: Go/lib/ (stored 0%)
...
adding: Go/lib/intellij-go-0.13.1947.jar (deflated 11%)
adding: Go/lib/plan9-0.13.jar (deflated 12%)
adding: Go/lib/utils-0.13.jar (deflated 8%)

Then Go.zip worked well for me with "Install plugin from disk" of my IntelliJ 2017.2 Community Edition.

@GoForGopher
Copy link

@Disastorm
Thank you!
I searching for more than an hour.This worked perfectly.

@tiagopotencia
Copy link

For Intellij 2017.3, is just change to:

until-build="173.*"/>

@meetsubhojit
Copy link

@suztomo thanks for the commands

@notzippy
Copy link

I created a release that works without changes here - https://github.com/notzippy/go-lang-idea-plugin/releases I will try to keep this compatible with intellij

@andreyvolosyuk
Copy link

andreyvolosyuk commented Sep 24, 2018

I've added all instructions given by @suztomo to a bash file. Run it as soon as phpstorm or another editor version was changed.

https://gist.github.com/andreyvolosyuk/fe87c3bfe2e1d8d5fb30719072c91e1f

@QuentinFra
Copy link

Any way to make this plugin work in IntelliJ community edition 2019.2?

@akshaygoyal
Copy link

@QuentinFra Try this:

<idea-version since-build="171.1834" until-build="192.*"/>

@rushi47
Copy link

rushi47 commented Jul 1, 2020

If anybody is looking for answer with 2020 version its

But it seems its way different from Ultimate edition plugin as it have lot of Feature, for example it can show whole struct just by hovering to it.
Switching to VS Code -_-

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

No branches or pull requests