vim-g icon indicating copy to clipboard operation
vim-g copied to clipboard

Not working under Arch Linux

Open hellolj opened this issue 11 years ago • 18 comments

The plug-in is not working with vim or gvim under Arch Linux (3.12.9-1): vim: v7.4.135; perl: v5.18.2; xdg-open: 1.1.0 rc1 terminal: xfce4-terminal 0.6.3

hellolj avatar Feb 02 '14 11:02 hellolj

Hi @hellolj

Please check out the debug branch: https://github.com/szw/vim-g/commit/aaefb72c49d72f4d296be65ecb559c588a612c4d and please paste the output of vim-g-debug.txt file.

szw avatar Feb 02 '14 15:02 szw

hi, @szw I did "git pull origin debug", git checkout debug, did the ":G hello" test, but can't find the output file (or, where am I supposed to find the txt file?)

hellolj avatar Feb 02 '14 15:02 hellolj

Please check https://github.com/szw/vim-g/commit/fb93b26352d73e567584922e58bd722079b180ea. The file should be under your home dir now.

szw avatar Feb 02 '14 15:02 szw

Just left my office(midnight). I will update the result about 8 hours later. thanks.

hellolj avatar Feb 02 '14 15:02 hellolj

no output file was generated in the home directory.

hellolj avatar Feb 03 '14 00:02 hellolj

Hmm, that's strange. Please, paste a link to your .vimrc and check the plugin under a vanilla Vim (without any other plugins).

szw avatar Feb 03 '14 07:02 szw

Here is my .vimrc file: https://gist.github.com/hellolj/758837583064b44a30c4

I moved all other plugins into a temporary directory and started the Vim again with only vim-g loaded.

Still, no txt file was generated.

hellolj avatar Feb 03 '14 08:02 hellolj

Thanks. Everything looks fine. Please, check with the latest commit. The file should be generated here: ~/vim-g-debug.txt. If still no luck, please perform following command: :call g#Goo("foobar").

szw avatar Feb 03 '14 08:02 szw

It worked this time. The following is the content from the debug txt file: perl xdg-open http://google.com/search?q= test

hellolj avatar Feb 03 '14 08:02 hellolj

Yeah. Thanks a lot for cooperation :). I'm confused why this doesn't open your browser. Today's evening I'll try to spend more time on that. What shell are you using? Bash? Zsh? What teminal?

Edit: I see the terminal in the beginning of this topic.

szw avatar Feb 03 '14 08:02 szw

I am using zsh generally with xfce4-terminal. I also tried calling vim from bash, but no difference.

:) No problem. Thanks for your efforts to fix the issue.

hellolj avatar Feb 03 '14 08:02 hellolj

I'm running Arch, zsh, xterm and I have no problems.

@hellolj does xdg-open work properly in your terminal?

lordi avatar Feb 10 '14 13:02 lordi

@hellolj yeah please make sure you have xdg-open configured properly. Also please check how it behaves with no other plugins in Vim. Perhaps on weekend I'll got some spare time to try to reproduce this bug on Arch (I need to install it in the VM).

szw avatar Feb 10 '14 23:02 szw

Hi, @lordi @szw , thanks for the attention to the problem. I tried xdg-open in terminal ("xdg-open www.google.com") and it works fine. I tried this on two installations of Arch Linux (I copied .vimrc and .vim directly to another installation though) but still not working.

hellolj avatar Feb 14 '14 12:02 hellolj

One bit information might be helpful: when I test "xdg-open www.google.com" in the terminal, thoug the webpage is loaded as expected in firefox, the terminal pops up one error information: ''process:2347): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed "

hellolj avatar Feb 14 '14 12:02 hellolj

I get the same Glib message, and vim-g works for me on Arch. So it can't be that. :)

Did you try with all other vim plugins and settings disabled?

lordi avatar Feb 14 '14 13:02 lordi

Try sudo cpan URI::Escape

chenaren avatar Mar 08 '15 04:03 chenaren

It didn't work for me either and this error message was printed in the shell:

Can't locate URI/Escape.pm in @INC (you may need to install the URI::Escape module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .).
                                                                     BEGIN failed--compilation aborted.

but all I had to do was install perl-uri from the official repositories:

# pacman -S perl-uri

meribold avatar Sep 25 '15 14:09 meribold