Skip to content
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 on gvim windows #26

Closed
giahuyng98 opened this issue Sep 9, 2019 · 7 comments
Closed

Error on gvim windows #26

giahuyng98 opened this issue Sep 9, 2019 · 7 comments
Assignees

Comments

@giahuyng98
Copy link

error when hit C-X C-O on gvim windows:

Error detected while processing function erlang_complete#Complete[22]..<SNR>27_ErlangFindExternalFunc:
line   18:
E484: Can't open file C:\Users\mine\AppData\Local\Temp\VIo677A.tmp
Press ENTER or type command to continue
@hcs42 hcs42 self-assigned this Sep 10, 2019
@hcs42
Copy link
Member

hcs42 commented Sep 10, 2019

Could you try the following scenarios:

  1. Open an empty Erlang file in GVim and type C-x C-o. Do you get the error? If not, what happens?

  2. Type lists:m and type C-x C-o. Do you get the error? If not, what happens?

  3. Run the following command in GVim (replace the ... with your path):

    :echo system ('escript /.../vim-erlang-omnicomplete/autoload/erlang_complete.erl list-modules') 
    

    Does Vim start printing a long list (you can hit q to stop it), or do you get the error?

@giahuyng98
Copy link
Author

giahuyng98 commented Sep 12, 2019

 Error detected while processing C:\Program Files (x86)\Vim\vim81\plugin\vim-erlang-omnicomplete-master\autoload\erlang_c
omplete.vim:
line   18:
E122: Function <SNR>26_starts_with already exists, add ! to replace it
line   83:
E122: Function <SNR>26_get_preview_line already exists, add ! to replace it
line  135:
E122: Function erlang_complete#Complete already exists, add ! to replace it
line  148:
E122: Function <SNR>26_ErlangFindNextNonBlank already exists, add ! to replace it
line  219:
E122: Function <SNR>26_ErlangFindExternalFunc already exists, add ! to replace it
line  286:
E122: Function <SNR>26_ErlangFindLocalFunc already exists, add ! to replace it
line  290:
E122: Function erlang_complete#ClearAllCache already exists, add ! to replace it
line  296:


Error detected while processing function erlang_complete#Complete[22]..<SNR>26_ErlangFindExternalFunc:
line   18:
E484: Can't open file C:\Users\mine\AppData\Local\Temp\VIoD7B3.tmp

E484: Can't open file C:\Users\mine\AppData\Local\Temp\VIo981B.tmp

@hcs42
Copy link
Member

hcs42 commented Sep 12, 2019

Does this command work or does it print the same error?

:echo system("dir")

@giahuyng98
Copy link
Author

giahuyng98 commented Sep 13, 2019

It work (print files in my directory).

@hcs42
Copy link
Member

hcs42 commented Sep 15, 2019

I found a few similar error reports in Vim plugins and some other information about this issue:

Based on these:

  1. What is the output of the following command?

    :set shellcmdflag? shellquote? shellxquote?

    Can you try:

    :set shellxquote=\"

    And see if the error still occurs. If yes, then could you also try the following:

    :set shell=cmd
    :set shellcmdflag=/c
  2. What is your Vim version? See https://groups.google.com/forum/#!topic/vim_dev/CNIODLeIt54 for a similar error caused by a Vim bug. If this is the problem then it can be fixed with installing the newest Vim version.

@giahuyng98
Copy link
Author

:set shellxquote=\"
solves the problem.
Thanks

@MartyLake
Copy link

For the next internet people who lands there, I randomly arrived here from google searches about ctags that would not work because C:\Users\mine\AppData\Local\Temp\ was not accessible.

:set shellxquote=\"
:set shell=cmd
:set shellcmdflag=/c

solved my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants