richterger / Perl-LanguageServer

Language Server for Perl
Other
224 stars 53 forks source link

VS Code Extension doesn't start with local installation of perl #37

Closed bmakan closed 4 years ago

bmakan commented 4 years ago

I am using CentOS 7. The official version of perl is 5.16 so I had to install 5.26 locally.

This is my setting.json:

{
    "perl.sshAddr": "x.x.x.x",
    "perl.sshWorkspaceRoot": "/home/bmakan/project",
    "perl.perlCmd": "/opt/rh/rh-perl526/root/usr/bin/perl"
}

Yet, when I start the VS Code the perl language server crashes with the following output:

[Error - 11:13:55 AM] Connection to server is erroring. Shutting down server.
[Error - 11:13:55 AM] Connection to server is erroring. Shutting down server.
[Error - 11:13:55 AM] Connection to server is erroring. Shutting down server.
/opt/rh/rh-perl526/root/usr/bin/perl: error while loading shared libraries: libperl.so.rh-perl526-5.26: cannot open shared object file: No such file or directory

I tried adding:

    "perl.perlInc": [
        "/opt/rh/rh-perl526/root/usr/local/lib64/perl5",
        "/opt/rh/rh-perl526/root/usr/local/share/perl5",
        "/opt/rh/rh-perl526/root/usr/lib64/perl5/vendor_perl",
        "/opt/rh/rh-perl526/root/usr/share/perl5/vendor_perl",
        "/opt/rh/rh-perl526/root/usr/lib64/perl5",
        "/opt/rh/rh-perl526/root/usr/share/perl5"
    ]

to the setting.json but it didn't help.

The perl installation is working correctly. Tested it on a fairly complex script.

bmakan commented 4 years ago

After VS Code restart, the syntax checking is working. I suppose it required a restart for whatever reason.

I use a different extension for debugging - one supporting remote attach.

I'll close this as it's not an issue really.