go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.56k stars 571 forks source link

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

Closed shruti1701 closed 7 years ago

shruti1701 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

dlsniper commented 7 years ago

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

dlsniper commented 7 years ago

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 commented 7 years ago

Any solution for this issue? Thanks

dlsniper commented 7 years ago

Yes, see my first comment on the issue https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/2897#issuecomment-316320489

bmarguer commented 7 years ago

Opened Issue #GO-4191 for Ant support. Thanks

Disastorm commented 7 years ago

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 commented 7 years ago

@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 commented 6 years ago

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

tiagopotencia commented 6 years ago

For Intellij 2017.3, is just change to:

until-build="173.*"/>

meetsubhojit commented 6 years ago

@suztomo thanks for the commands

notzippy commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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

akshaygoyal commented 4 years ago

@QuentinFra Try this:

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

rushi47 commented 4 years ago

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 -_-