Coder Social home page Coder Social logo

Comments (31)

mtoader avatar mtoader commented on June 8, 2024

Hi there,

after you run all.bash inside the src folder what is the output ?
(should be something like this:


Installed Go for linux/amd64 in /home/mtoader/Tools/google-go/release.
Installed commands in /home/mtoader/Tools/google-go/release/bin.
*** You need to add /home/mtoader/Tools/google-go/release/bin to your $PATH. ***
The compiler is 6g.

If this is so you should not define the $GOBIN var anymore (except when you move the binaries manually in a different folder).

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

Hi there,

I just checked the sdk detection against the latest google go release and it turns out that they removed a file i was checking against. Until i push a new fixed build you should create a file named "place-holder" inside the $GOROOT/pkg folder.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

I pushed a new fixed build. Enjoy :)

from go-lang-idea-plugin.

abiosoft avatar abiosoft commented on June 8, 2024

about my $GOBIN being in another location. I'm already used to that way since previous go releases and my $GOBIN has always been my $HOME/bin. After the release where $GOBIN, $GOARCH and $GOROOT became optional. I left it the way it was cos it is not depreciated, it is only optional i.e. I can still have my $GOBIN where it is without needing to add my new $GOBIN ($GOROOT/bin) to PATH.

I added the place-holder file and still updated the plugin to the latest release without any success.

I'll delete $GOROOT, $GOBIN & $GOARCH, rebuild go and see if it will work. Thanks

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

Problem's still here.

In src/ro/redeul/google/go/sdk/GoSdkUtil.java, use the command 'go version' to get the version id and 'go env GOROOT' to get the root. On Ubuntu 'go tool dist GOROOT' exits 1.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

Do you have any idea why is the go tool dist GOROOT returning 1 on Ubuntu ?

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

Guessing its an Ubuntu packaging error for package 'golang-go'.

$ go tool dist GOROOT
go tool dist: $GOROOT is not set correctly or not exported
GOROOT=/usr/lib/go
/usr/lib/go/include/u.h does not exist
go tool dist: exit status 1

$ go env GOROOT
/usr/lib/go

$ go tool dist version
go tool dist: $GOROOT is not set correctly or not exported
GOROOT=/usr/lib/go
/usr/lib/go/include/u.h does not exist
go tool dist: exit status 1

$ go version
go version go1.0.2

I can't speak for other platforms, but these commands seem like standard go.

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

Oh, and thank you for the immediate response.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

How was go installed ?

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal

Installed with:

$ sudo apt-get install -y golang

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

Ok thanks

I'll look into it after work today.

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

Technically, you should:

$ sudo apt-get update
$ sudo apt-get install -y golang

The first command updates the versions you can "see" before you actually download the latest packages and install.

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

https://bugs.launchpad.net/ubuntu/+source/golang/+bug/1076017

It's getting addressed on the Ubuntu side, but this will take some time because it's actually a Debian upstream bug. So I would recommend you issue the revised commands above, since they're known to work.

Thanks.

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

... and I'm dead in the water until you update this. In the meantime I'm using go-mode in emacs. Ugh.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

hey @mcarifio are you able to use the 0.9.14 to add your go sdk properly lately ?

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

Not yet. When I try to update the plugin from idea, I only see 0.9.13. How do I obtain and install the next iteration?

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

Ah, I meant 0.9.13 (0.9.14 is the currently working version).

Are you saying that this still doesn't work with 0.9.13 ?

Mihai

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

'Fraid not, same error.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

Ok, I'll investigate this for 0.9.14 too.

from go-lang-idea-plugin.

cmsd2 avatar cmsd2 commented on June 8, 2024

i had a go at making an ubuntu package for quantal which fixes the 3 issues i found. it:
puts in a VERSION file
puts the binaries in /usr/lib/go and symlinks in /usr/bin
packages the include directory which contains u.h

only available for amd64 and i386, and i'm new to this deb packaging stuff so bear that in mind.

https://launchpad.net/~cmsd2/+archive/ppa/+packages

add the ppa and install golang-go (not golang)
you should get version 2:1.0.2-2cmsd2

obviously it will be best when the upstream packages are fixed.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

Thanks for doing that. Although it should work with the default installation. I'm looking into this now.

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

Tried again with a more recent go:

sudo apt-add-repository -y ppa:gophers/go
sudo apt-get update
sudo apt-get install -y golang-stable # removes golang if installed

Installed 0.9.13 and configured the sdk as /usr/lib/go/bin. This worked.

However, when I try to create a 'go app' run configuration, I get the following error message:

10:01:32 PM NoSuchMethodError: update failed for AnAction with ID=CreateRunConfiguration: com.intellij.execution.BeforeRunTask: method ()V not found (show balloon)

Pl. advise.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

What's the IntelliJ version ?
From the look of it it seems like they changed some of the classes inside the framework and i don't have an implemented method in my plugin, but i would have to double check that.

Mihai

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

#IM-123.169. I appear to have done a recent IU upgrade and it works. This includes compiling and running the example hello world provided with go. And popping up documentation. Finally. Nice. Thanks.

from go-lang-idea-plugin.

fccoelho avatar fccoelho commented on June 8, 2024

@mcarifio : I did what you suggested but I am still getting the error message that "/usr/lib/go/bin" is not a valid home for the Go SDK,

any other suggestions?

I am on Ubuntu 12.10

from go-lang-idea-plugin.

fccoelho avatar fccoelho commented on June 8, 2024

Update: it worked when I set the path "/usr/lib/go/" which didn't work before... 'go' figure... (pun intended) :-D

from go-lang-idea-plugin.

mcarifio avatar mcarifio commented on June 8, 2024

Right, its the trailing / that makes it work I think, but I'm not sure why. I should have mentioned it above. Glad its working for you.

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 8, 2024

Due to various way GO can be packaged by various maintainers I'd say that this should be closed and we add in the manual that the plugin supports installs only from packages from golang.org download section. @mtoader what do you think?

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

I'm all for it :). But in my experience people will just not care and ask for support for their specific installation :).

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 8, 2024

This is marked for 0.9.15. What should we do about it? I've tested with installing the plugin from Homebrew and golang.org on Mac, golang.org on Windows and Linux and it worked fine.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 8, 2024

So let's close it.

from go-lang-idea-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.