You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? (required. The issue will be closed when not provided.)
I was editing a go file and issued :GoInstall The problem is repeatable. It seems that cgo compiler warnings can mess with the vim/vim-go errors interactions. The problem only occurs with one app.
I use vim-go all day long. Thank you for making vim-go.
What did you expect to happen?
The go source would remain present as usual and go syntax errors would show-up in the vim errors window.
What happened instead?
The go source code disappeared (window was still present) and the errors windows was populated with three lines.
I think the problem is triggered by the following go install -v output:
$ go install -v
# <redacted>/vendor/github.com/google/gousb
cgo-gcc-prolog: In function‘_cgo_8c50a4ca37d7_Cfunc_libusb_set_debug’:
cgo-gcc-prolog:505:2: warning: ‘libusb_set_debug’ is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations]
In file included from vendor/github.com/google/gousb/libusb.go:31:0:
/usr/include/libusb-1.0/libusb.h:1300:18: note: declared here
void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
^~~~~~~~~~~~~~~~
vimrc you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):
I can comment-out all plugins except vim-go and the problem still occurs.
filetypeoff" required " set the runtime path to include Vundle and initialize setrtp+=~/.vim/bundle/Vundle.vimcallvundle#begin()
" alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required Plugin'VundleVim/Vundle.vim'Plugin'fatih/vim-go'Plugin'fatih/molokai'Plugin'tcomment'Plugin'othree/html5.vim'Plugin'Valloric/YouCompleteMe'Plugin'Valloric/ListToggle'Plugin'eapache/rainbow_parentheses.vim'Plugin'godlygeek/tabular'Plugin'plasticboy/vim-markdown'" All of your Plugins must be added before the following line callvundle#end()" required filetypepluginindenton" required letg:go_fmt_experimental=1setshell=/bin/bash\ -lsetnocompatiblesett_Co=256setnuicsw=4ts=4smartindenttfsetmatchtime=0"let loaded_matchparen = 1 letg:rehash256=1letg:molokai_original=1aucolorschememolokaihiLineNrterm=standout ctermfg=81gui=bold guifg=#66D9EF|hiSpecialKeyterm=standout ctermfg=81gui=bold guifg=#66D9EF|hiNonTextterm=standout ctermfg=81gui=bold guifg=#66D9EF|hiCommentterm=underline ctermfg=208 guifg=#FD971F|hiVisualterm=reverse cterm=reverse ctermfg=193 ctermbg=16gui=reverse guifg=#C4BE89 guibg=#000000colo molokai
"let g:go_def_mode = 'godef' setmodelinesetfdm=syntaxsetnofensetnoshelltempsyntaxonsetfoldmethod=syntaxletg:fastfold_togglehook=1letg:go_asmfmt_autosave=1setcompleteopt-=preview
"highlight ColorColumn ctermbg=Gray highlightColorColumn ctermbg=darkgraysetpastetoggle=<F2>letg:go_metalinter_enabled= ['vet', 'golint']
letg:go_gocode_unimported_packages=1
Vim version (first three lines from :version):
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 27 2018 02:08:08)
Included patches: 1-1766
Modified by [email protected]
What did you do? (required. The issue will be closed when not provided.)
I was editing a go file and issued
:GoInstall
The problem is repeatable. It seems that cgo compiler warnings can mess with the vim/vim-go errors interactions. The problem only occurs with one app.I use vim-go all day long. Thank you for making vim-go.
What did you expect to happen?
The go source would remain present as usual and go syntax errors would show-up in the vim errors window.
What happened instead?
The go source code disappeared (window was still present) and the errors windows was populated with three lines.
I think the problem is triggered by the following
go install -v
output:Configuration (MUST fill this out):
vim-go version:
afbfc37 (latest)
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):I can comment-out all plugins except vim-go and the problem still occurs.
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 27 2018 02:08:08)
Included patches: 1-1766
Modified by [email protected]
Go version (
go version
):go version go1.10.1 linux/386
go env
):GOARCH="386"
GOBIN=""
GOCACHE="/home/erik/.cache/go-build"
GOEXE=""
GOHOSTARCH="386"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/erik/go"
GORACE=""
GOROOT="/usr/lib/go-1.10"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.10/pkg/tool/linux_386"
GCCGO="gccgo"
GO386="387"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-s -w"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build811200738=/tmp/go-build -gno-record-gcc-switches"
The text was updated successfully, but these errors were encountered: