Comments (31)
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.
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.
I pushed a new fixed build. Enjoy :)
from go-lang-idea-plugin.
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.
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.
Do you have any idea why is the go tool dist GOROOT returning 1 on Ubuntu ?
from go-lang-idea-plugin.
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.
Oh, and thank you for the immediate response.
from go-lang-idea-plugin.
How was go installed ?
from go-lang-idea-plugin.
$ 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.
Ok thanks
I'll look into it after work today.
from go-lang-idea-plugin.
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.
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.
... 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.
hey @mcarifio are you able to use the 0.9.14 to add your go sdk properly lately ?
from go-lang-idea-plugin.
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.
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.
'Fraid not, same error.
from go-lang-idea-plugin.
Ok, I'll investigate this for 0.9.14 too.
from go-lang-idea-plugin.
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.
Thanks for doing that. Although it should work with the default installation. I'm looking into this now.
from go-lang-idea-plugin.
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.
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.
#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.
@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.
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.
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.
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.
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.
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.
So let's close it.
from go-lang-idea-plugin.
Related Issues (20)
- EditorCopy: com.intellij.psi.PsiInvalidElementAccessException HOT 2
- Plugin Not Working on PHPSTORM 2017.2 HOT 1
- Improved Delve support for Go 1.9 HOT 2
- fallthrough statement out of place HOT 1
- Create new go file error HOT 1
- File Watcher - Default go fmt HOT 1
- packages in project GOPATH not getting resolved HOT 1
- Running Extract Method Refactoring from an other plugin HOT 1
- Renaming an interface method does not rename implementations HOT 1
- Cannot change GOROOT HOT 3
- Plugin 'Go' is incompatible with this installation HOT 1
- Announcement: This repository is now officially unmaintained HOT 1
- Error to create a custom response HOT 1
- there is no go sdk option where new sdk to project. HOT 1
- Fail to compile and run gotest HOT 1
- No plugins found HOT 2
- Unresolved type for all standard Go types and functions HOT 8
- Fail to load plugin descriptor from file go-lang-idea-plugin-master.zip HOT 1
- eiddccidrujckhtkkbndflghniudgihcbgfjcihbrvcv
- Can't configure go SDK HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-lang-idea-plugin.