-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use literal newline in order to properly split the string #3358
base: master
Are you sure you want to change the base?
Conversation
I'd also be interested in knowing what you see for these |
FWIW, I can duplicate the issue with Neovim, but not with Vim. It seems like the issue here may be how Neovim is handling escaped characters when it invokes external commands. |
Ah that's interesting. I'll try it with Vim, but if you can only reproduce it with Neovim it is probably a nvim issue. I will also look into Yes, it seems as if it has to do with the escaping in neovim. |
Ok, so. I looked into it and I get the same error with vim as well (I am on master. The complete config file I load for vim as well as nvim is let data_dir = '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin(data_dir . '/plugged')
Plug 'fatih/vim-go', { 'for': 'go', 'do': ':GoUpdateBinaries' }
call plug#end()
let g:go_debug=['shell-commands'] I dug around quite some time and thought I could pin it down but I couldn't settle on a definitive result. Some findings:
But regarding your concerns it could break compatibility on other OS: My fix uses basically the same code as in Unfortunately I can't test it on any non-Linux OS right now to see how it behaves there. |
My first inclination was that what you're seeing logged is escaped for logging purposes, so it makes sense that you'd see I wonder if the behavior you're seeing has something to do with the shell options that vim-go sets (or that it doesn't set!)? In a go file, what does |
This should fix
go#tool#Files()
andgo#tool#Imports()
as described by my comment in #3300.All tests passed. 👍 🚀