Skip to content

"Error detected while processing function" after install when opening go files #2536

@thingsis

Description

@thingsis

What did you do? (required: The issue will be closed when not provided)

Clean install of both vim and vim-go on windows with a working install of go 1.13. Everytime I load a go file I get the above error. See below for details

What did you expect to happen?

The editor to open without en error message so that I can at least :GoInstallBinaries to finish the installation - this has not yet taken place, since executing any :Go... command gives a similar error

What happened instead?

The following error:

Error detected while processing function <SNR>23_register[9]..go#lsp#DidOpen[19]..9[2]..go#util#ModuleRoot[1]..go#util#ExecInDir[9]..go#util#E
xec[17]..<SNR>25_exec[7]..<SNR>25_system:
line   11:
E484: Can't open file C:\Users\hguschov\AppData\Local\Temp\VIoAD0C.tmp
Error detected while processing function <SNR>23_register[9]..go#lsp#DidOpen[19]..9:
line    2:
E171: Missing :endif
Press ENTER or type command to continue

Configuration (MUST fill this out):

vim-go version:

master

vimrc you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):

vimrc
if has('gui_running')
  set guioptions-=T  "  no toolbar
  set guifont=Go_Mono:h12:cANSI:qDRAFT  "  Go Mono font
  colo dichromatic
  syntax on
  set lines=42 columns=142
  set guicursor+=a:blinkon0
endif
filetype plugin indent on
set backspace=indent,eol,start
:nnoremap  :NERDTreeToggle
set visualbell
set encoding=utf-8
set fileencoding=utf-8
autocmd FileType go setlocal tabstop=3 shiftwidth=3 softtabstop=3
""autocmd FileType go lcd %:p:h
set shiftwidth=3
set undofile
set undodir=~/vimfiles/undodir

Vim version (first three lines from :version):

VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:36:07)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1

Go version (go version):

Go environment

go env Output:
go version go1.13 windows/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions