What did you do? (required. The issue will be closed when not provided.)
I opened a project located in gopath/src and noticed error check was not happening. Tried to run GoErrCheck and got this error. I entered !echo $GOPATH which returned /Users/zls/go. pwd returns /Users/zls/go/src/github.com/zls0/owlio.
What did you expect to happen?
Error handling to happen. Proper recognition of go-path.
What happened instead?
This error message appeared.
Configuration (MUST fill this out):
vim-go version:
1.17
vimrc you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):
" deoplete
set completeopt=longest,menuone " auto complete setting
let g:deoplete#enable_at_startup = 1
let g:deoplete#enable_smart_case = 1
let g:deoplete#auto_complete_start_length = 1
let g:deoplete#keyword_patterns = {}
let g:deoplete#keyword_patterns['default'] = '\h\w*'
let g:deoplete#omni#input_patterns = {}
let g:deoplete#sources#go#sort_class = ['package', 'func', 'type', 'var', 'const']
let g:deoplete#sources#go#align_class = 1
" neomake
let g:neomake_go_enabled_makers = [ 'go', 'gometalinter' ]
let g:neomake_go_gometalinter_maker = {
\ 'args': [
\ '--tests',
\ '--enable-gc',
\ '--concurrency=3',
\ '--fast',
\ '-D', 'aligncheck',
\ '-D', 'dupl',
\ '-D', 'gocyclo',
\ '-D', 'gotype',
\ '-E', 'errcheck',
\ '-E', 'misspell',
\ '-E', 'unused',
\ '%:p:h',
\ ],
\ 'append_file': 0,
\ 'errorformat':
\ '%E%f:%l:%c:%trror: %m,' .
\ '%W%f:%l:%c:%tarning: %m,' .
\ '%E%f:%l::%trror: %m,' .
\ '%W%f:%l::%tarning: %m'
\ }
let g:neomake_typescript_enabled_makers = ['tslint']
" vim-go
let g:go_def_mapping_enabled = 0
let g:go_fmt_command = 'goimports'
let g:go_fmt_fail_silently = 1
let g:go_term_enabled = 1
" plugins
call plug#begin()
Plug 'neomake/neomake'
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-go', { 'do': 'make' }
Plug 'jiangmiao/auto-pairs'
call plug#end()
Vim version (first three lines from :version):
Nvim 0.3.0
What did you do? (required. The issue will be closed when not provided.)
I opened a project located in gopath/src and noticed error check was not happening. Tried to run GoErrCheck and got this error. I entered
!echo $GOPATH
which returned/Users/zls/go
.pwd
returns/Users/zls/go/src/github.com/zls0/owlio
.What did you expect to happen?
Error handling to happen. Proper recognition of go-path.
What happened instead?
This error message appeared.
Configuration (MUST fill this out):
vim-go version: 1.17
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):Vim version (first three lines from
:version
): Nvim 0.3.0Go version (
go version
): 1.10Go environment (
go env
):