richterger / Perl-LanguageServer

Language Server for Perl
Other
219 stars 53 forks source link

Perlbrew cmd #210

Open CyprusSocialite opened 1 week ago

CyprusSocialite commented 1 week ago

Setting perlCmd to

perlbrew --quiet exec --halt-on-error --with perl-5.XX.X perl

doesn't work as expected - presumably because of some exit status shenanigans, although --halt-on-error should take care of that (https://github.com/gugod/App-perlbrew/pull/343).

However, using the following wrapper shell script does work (with its path as perlCmd):

#!/usr/bin/env bash

source ~/perl5/perlbrew/etc/bashrc && perlbrew use perl-5.XX.X && perl $@

echo $?