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
First symptom is that :GoFmt no longer works, I get a cryptic error:
Error detected while processing function <SNR>12_fmt_autosave..go#fmt#Format..go#util#System:
line 3:
E484: Can't open file C:\Users\Sphax\AppData\Local\Temp\VIoCBDF.tmp
I thought I screwed up something in my vimrc regarding temp directories or something, but I checked the usual stuff and it wasn't that.
By debugging the go#fmt#Format function I managed to track down the problem to the go#util#System function. I then checked the git history of that file and saw #967 which changed it, so I tried reversing the change and everything works fine.
I'm guessing /bin/sh won't work on Windows (my shell is cmd.exe).
Expected behavior
No errors.
Steps to reproduce:
Open any .go file.
run :GoFmt (or save)
Configuration
Minimal vimrc used:
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
Plugin 'VundleVim/Vundle.vim'
Plugin 'fatih/vim-go'
filetype plugin indent on
syntax enable
Actual behavior
First symptom is that :GoFmt no longer works, I get a cryptic error:
I thought I screwed up something in my vimrc regarding temp directories or something, but I checked the usual stuff and it wasn't that.
By debugging the
go#fmt#Format
function I managed to track down the problem to thego#util#System
function. I then checked the git history of that file and saw #967 which changed it, so I tried reversing the change and everything works fine.I'm guessing
/bin/sh
won't work on Windows (my shell is cmd.exe).Expected behavior
No errors.
Steps to reproduce:
Configuration
Minimal vimrc used:
Vim 7.4 for Windows, vim-go commit 3030ecc
The text was updated successfully, but these errors were encountered: