richterger / Perl-LanguageServer

Language Server for Perl
Other
224 stars 53 forks source link

Perl::LanguageServer - Support for Perl v5.16 #36

Closed bmingles closed 4 years ago

bmingles commented 4 years ago

It looks like Perl::LanguageServer requires Perl v18. We are constrained to some outdated servers. Would it be possible to make this work in v5.16?

richterger commented 4 years ago

It should also work with Perl 5.16, the reason for 5.18 is that some of the modules that gets used requires 5.18. If you have all required module for 5.16, than you can change the use 5.18 to use 5.16 and if it a try

thalia2809 commented 3 years ago

@richterger thanks. I have the same problem but I am not sure how to force the use of perlv v5.16 can you please explain how to check if I have all requires modules installed and how I can change the LanguageServer version? Thank you

finwarman commented 2 years ago

@richterger thanks. I have the same problem but I am not sure how to force the use of perlv v5.16 can you please explain how to check if I have all requires modules installed and how I can change the LanguageServer version? Thank you

I've created a fork of this module with Perl v5.16 compatibility, if you're unsure how to edit it yourself:

https://github.com/finwarman/perl-5.16-Perl-LanguageServer/releases/tag/V2.3.0

bgeels commented 1 year ago

Hi @finwarman, thank you for putting that patch together. Using that I was able to get the Language server installed and mostly working with perl 5.16. However, the debugger is not currently working. When attempting to run the code. The following error message is printed:

No DB::DB routine defined at...

It's my understanding that DB::DB is provided by Perl-LanguageServer. I was wondering if you ran into this issue with version 5.16 and were able to get around it?