Raku / vim-raku

Vim runtime files for Raku support
MIT License
45 stars 12 forks source link

perl6 error string is injected into path var #5

Open zostay opened 4 years ago

zostay commented 4 years ago

Migration of https://github.com/vim-perl/vim-perl6/issues/19 by @ghost

Description of issue

ftplugin/perl6.vim executes a shell command when it's invoked without checking v:shell_error:

        if &shellxquote != '"'
            let perlpath = system('perl6 -e  "@*INC.join(q/,/).say"')
        else
            let perlpath = system("perl6 -e  '@*INC.join(q/,/).say'")
        endif

Whatever this was originally for, it's not valid code in current versions of rakudo:

$ perl6 -e '@INC.join(q/,/).say' Dynamic variable @INC not found in block at -e line 1 ...and this error text ends up in the value of :set path. I'm not sure what the original intent of this code was, but the thought that it's been executing random commands every time I open the editor on a perl6 file is a bit scary.

zostay commented 4 years ago

I saw that when looking through the files initially and I have no idea what that is doing. I need to look at it more carefully and consider what should be done about.

softmoth commented 3 years ago

The offending code has been removed in #24, so I believe this issue can be closed.