Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cannot find Go SDK #72

Closed
jmarant opened this Issue Mar 28, 2012 · 22 comments

Comments

Projects
None yet
7 participants

jmarant commented Mar 28, 2012

Hi,

When creating a new Go project through the wizard, the plugin is unable to find a Go SDK
although a valid root path to a Go SDK is provided.

Also, giving a hint within the error popup message about what went wrong in the detection would help a lot.

Tested with : golang weekly 03 22 and newly released go 1.

Regards,

Jérôme.

Confirming. I am pointing it at /usr/lib/go (which I also have set in my GOROOT), and I keep getting "The selected directory is not a valid home for Go Sdk". This is with Go 1 from the Ubuntu gophers/go PPA.

Owner

mtoader commented Mar 31, 2012

Thanks for letting me know. I'm taking a look at this over the weekend.

This is with the plugin or with the goide release ?

Owner

mtoader commented Mar 31, 2012

I see what's the issue. I need to change the logic of how they are detecting the go version and how are they calling the compiler and so. This will take a little time.

Yep, the Idea plugin as it seems you've guessed :-) Let me know if I can help.

tecbot commented Apr 4, 2012

i think you can find the solution here: jburet/google-go-lang-idea-plugin@b7937b1...56c9772

Owner

mtoader commented Apr 4, 2012

Nice find. Thank you.

I'll merge and validate this.

Owner

mtoader commented Apr 7, 2012

Thanks,

I've merged that. I'll do a validation of this and the other commit and push an updated plugin.

tecbot commented Apr 7, 2012

i hope you push a update to the plugin repository soon :)

Owner

mtoader commented Apr 8, 2012

Pushed :). Please let me know how it goes :)

bsjaekel commented Apr 9, 2012

Works fine for me now (IntelliJ IDEA Community Edition 11.1.1 Build IC-117.117, JDK 1.6.0_26, Google Go Language Plugin 0.5.1) ! Keep up the great work!

It can find the SDK with the latest updates now, but when I try to run a sample program (clicking the play button) I get:

Argument 0 for @NotNull parameter of com/intellij/openapi/roots/ModuleRootManager.getInstance must not be null: Argument 0 for @NotNull parameter of com/intellij/openapi/roots/ModuleRootManager.getInstance must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/openapi/roots/ModuleRootManager.getInstance must not be null
at com.intellij.openapi.roots.ModuleRootManager.getInstance(ModuleRootManager.java)
at ro.redeul.google.go.runner.GoApplicationConfiguration.getCompiledFileName(GoApplicationConfiguration.java:117)
at ro.redeul.google.go.runner.GoApplicationConfiguration.access$000(GoApplicationConfiguration.java:37)
at ro.redeul.google.go.runner.GoApplicationConfiguration$1.startProcess(GoApplicationConfiguration.java:101)
at ro.redeul.google.go.runner.GoApplicationConfiguration$1.startProcess(GoApplicationConfiguration.java:93)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:55)
at com.intellij.execution.impl.DefaultJavaProgramRunner.doExecute(DefaultJavaProgramRunner.java:80)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:85)
at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:154)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:92)
at com.intellij.openapi.project.DumbService$1.run(DumbService.java:75)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Owner

mtoader commented Apr 11, 2012

Can you provide me with the version of intellij and the plugin version that you are using please ?

Plugin v 0.5.1 and Idea 11.1.1 on OpenJDK 1.6.0_24

Owner

mtoader commented Apr 11, 2012

And the OS version ?

Ubuntu 12.04

Owner

mtoader commented Aug 3, 2012

Hi Mikkel,

Can you check if this issue still persists with the latest plugin version (0.9.5+) ?

Thanls.

eummel commented Aug 11, 2012

I'm using Version 0.9.6 and go sdk v1.0.2 and the add sdk does not work.

Here is a patch:
https://gist.github.com/3325736

Owner

mtoader commented Aug 11, 2012

Hi emmuel,

Can you please tell me how did you installed the go sdk ? The reason i'm asking is that in a proper go sdk installation to go tool dist env command should work properly. I saw that the go env works too but i was curios why it didn't work on your machine.

Mihai

eummel commented Aug 12, 2012

It looks as if it was my fault. I have it tried to compile the packages myself. After i install the binary it works.

thx

eumme

Owner

mtoader commented Aug 12, 2012

I'm sorry to hear that :). Glad i was able to help in the end :).

@mtoader mtoader closed this Aug 12, 2012

jmarant commented Aug 16, 2012

Hi,

I'm sorry I've stopped using go for the moment.

Regards,

Jérôme.

----- Mail original -----
De: "Mihai Claudiu Toader" reply@reply.github.com
À: "Jérôme Marant" jerome@marant.org
Envoyé: Samedi 4 Août 2012 01:35:49
Objet: Re: [google-go-lang-idea-plugin] Cannot find Go SDK (#72)

Hi Mikkel,

Can you check if this issue still persists with the latest plugin version (0.9.5+) ?

Thanls.


Reply to this email directly or view it on GitHub:
mtoader#72 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment