where did $GOROOT/misc/vim go

812 views
Skip to first unread message

Andy Song

unread,
Aug 5, 2014, 5:17:14 AM8/5/14
to golang-nuts
I updated to the latest tip and can't find vim scripts anymore. Where did they go?

Thanks
Andy

Fatih Arslan

unread,
Aug 5, 2014, 5:28:13 AM8/5/14
to Andy Song, golang-nuts
It is removed:

https://codereview.appspot.com/105470043

Related golang-nuts thread:

https://groups.google.com/forum/#!topic/golang-dev/SA7fD470FxU

I've merged long time ago misc/vim into vim-go. You can install and use it if you want:

https://github.com/fatih/vim-go

--
Fatih Arslan
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Andy Song

unread,
Aug 5, 2014, 5:35:13 AM8/5/14
to Fatih Arslan, golang-nuts
Thanks, got it.

Andy Song

unread,
Aug 5, 2014, 10:48:39 AM8/5/14
to Fatih Arslan, golang-nuts
Tried to install vim-go. When I invoke vim I got following error:
vim-go: gocode not found. Installing github.com/nsf/gocode to folder /home/wsong/.vim-go/
Error installing github.com/nsf/gocode
vim-go: goimports not found. Installing code.google.com/p/go.tools/cmd/goimports to folder /home/wsong/.vim-go/
vim-go: godef not found. Installing code.google.com/p/rog-go/exp/cmd/godef to folder /home/wsong/.vim-go/
vim-go: oracle not found. Installing code.google.com/p/go.tools/cmd/oracle to folder /home/wsong/.vim-go/
vim-go: errcheck not found. Installing github.com/kisielk/errcheck to folder /home/wsong/.vim-go/

My env is like this:
GOBIN=/opt/go/bin
GOROOT=/opt/go
GOPATH=/public/development/go

BTW, I have no problem running "go get -d github.com/nsf/gocode". "go get  github.com/nsf/gocode" fails though because accessing /opt/go/bin is denied which is expected.

Thanks
Andy

Fatih Arslan

unread,
Aug 5, 2014, 12:55:51 PM8/5/14
to golang-nuts
Hi,

That's normal for the first time as stated in the docs:

https://github.com/fatih/vim-go#install

However sometimes google code just prevents downloading via go get. I think it
has some hard limits but I'm know sure why that happens. And vim-go uses
internally a command like:

go get -u -v code.google.com/p/go.tools/cmd/goimports

Before doing this it goes and sets the GOBIN to the go_bin_path variables:

let $GOBIN = g:go_bin_path

Therefore, all the necessary binaries are installed to this folder which is by
default ~/.vim-go.

Can you invoke the "go get" command above?

--
Fatih Arslan

Wenqiang Song

unread,
Aug 5, 2014, 2:58:46 PM8/5/14
to Fatih Arslan, golang-nuts
Thanks for the hint. Most of the errors are cause by permission problem. I have some mixed user and root files in GOPATH. 

But there are still two remaining which are goimports and oracle. 

I run

Thanks
--
---------------------------------------------------------------
有志者,事竟成,破釜沉舟,百二秦关终属楚
苦心人,天不负,卧薪尝胆,三千越甲可吞吴

Andy Song

unread,
Aug 5, 2014, 3:21:24 PM8/5/14
to Fatih Arslan, golang-nuts
For some reason goimports and oracle just don't download. I manually cloned go.tools repository and copied goimports and oracle over to GOPATH then the installation is fine. 
Reply all
Reply to author
Forward
0 new messages