-
-
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
error detected while processing function GoFiles #30
Comments
Can you past the full log? Usually the file is listed too. |
The same issue on OSX (2 errors before opening .go file):
|
|
Typing :GoFiles produces the same result as above... Empty line, and then can't open file in temp dir. I'm using FuzzyFinder with VIM, and go list in current directory produces: I usually open vim in GOPATH dir which doesn't contain any .go files anyway. Here is my VIM setup: https://github.com/bkaradzic/dotvim |
Yeah it needs go files. If there is no go files available it does produce an output like this. |
GoFiles does it even if I open vim in dir with .go files. |
Can you give me your test files please? I need a way to reproduce it :( Is your GOPATH not set maybe ? |
I just tried on this, and even when there are .go files it doesn't work: https://github.com/bkaradzic/go-lz4 |
Btw, I tried this on Windows, Linux and OSX and I get the same behavior everywhere. |
Thanks @bkaradzic , I'm looking at it now. |
Just tested it with your package (on Mac OS X) and this is what I have: I have two questions:
|
But the problem might be that I'm not using bash... On Win I just use standard cmd, on OSX and Linux I'm using fish shell (http://fishshell.com/). |
Is escaping different in fish shell? How would the command above work for you ? |
Fish is not really backwards compatible. I just changed back to bash (chsh -s ) restarted terminal and now |
We can give a specific |
Just pasting this as info. But probably you don't want to support all shell variations: |
Cool! This probably would fix Windows too, since I can use bash from msys there. |
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609599 fixes your problem. Seems you need to apply: if $SHELL =~ 'fish'
set shell='/bin/sh'
endif or set shell='/bin/sh' |
See also: https://github.com/dag/vim-fish Vim needs a more POSIX compatible shell than fish for certain functionality to work, such as :%!, compressed help pages and many third-party addons. If you use fish as your login shell or launch Vim from fish, you need to set shell to something else in your ~/.vimrc, for example:
Best do it somewhere at the top, before any addon code is loaded and executed. Note that this also affects what :sh[ell] launches, so if you care about that you might want to set it to your second best shell instead. If you use Vim in the terminal you could also train yourself to use :st[op] or CTRL-Z instead and then fg in fish to get back to Vim. |
@weitzj 👍 |
I have this set up in .vimrc
but still hitting issues when trying to save a file
|
@philwhln Uninstalling and reinstalling I'd love to know if you found the real cause of the issue. |
Just installed vim-go (on windows) and getting errors when opening .go files:
E484: Can't open file <path>\AppData\Local\Temp\VIo5EB7.tmp
.vim-go dir has: errcheck, golint, oracle, godef, goimports, gocode and installation didn't have any errors.
The text was updated successfully, but these errors were encountered: