richterger / Perl-LanguageServer

Language Server for Perl
Other
224 stars 51 forks source link

Just tried installing Perl::LanguageServer on an up to date Mac. It was a shitshow. #95

Closed davehodg closed 3 years ago

davehodg commented 3 years ago

This is on an up to date Mac (11.3.1).

$ cpanm  Perl::LanguageServer
--> Working on Perl::LanguageServer
Fetching http://www.cpan.org/authors/id/G/GR/GRICHTER/Perl-LanguageServer-2.2.0.tar.gz ... OK
Configuring Perl-LanguageServer-v2.2.0 ... OK
==> Found dependencies: IO::AIO, Class::Refresh, AnyEvent, Coro, Compiler::Lexer, AnyEvent::AIO
--> Working on IO::AIO
Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/IO-AIO-4.75.tar.gz ... OK
Configuring IO-AIO-4.75 ... OK
Building and testing IO-AIO-4.75 ... FAIL
! Installing IO::AIO failed. See /Users/daveh/.cpanm/work/1620641296.17020/build.log for details. Retry with --force to force install it.
--> Working on Class::Refresh
Fetching http://www.cpan.org/authors/id/D/DO/DOY/Class-Refresh-0.07.tar.gz ... OK
Configuring Class-Refresh-0.07 ... OK
==> Found dependencies: Class::Unload, Devel::OverrideGlobalRequire
--> Working on Class::Unload
Fetching http://www.cpan.org/authors/id/I/IL/ILMARI/Class-Unload-0.11.tar.gz ... OK
Configuring Class-Unload-0.11 ... OK
Building and testing Class-Unload-0.11 ... FAIL
! Installing Class::Unload failed. See /Users/daveh/.cpanm/work/1620641296.17020/build.log for details. Retry with --force to force install it.
--> Working on Devel::OverrideGlobalRequire
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Devel-OverrideGlobalRequire-0.001.tar.gz ... OK
Configuring Devel-OverrideGlobalRequire-0.001 ... OK
Building and testing Devel-OverrideGlobalRequire-0.001 ... FAIL
! Installing Devel::OverrideGlobalRequire failed. See /Users/daveh/.cpanm/work/1620641296.17020/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Devel::OverrideGlobalRequire' is not installed, Module 'Class::Unload' is not installed
! Bailing out the installation for Class-Refresh-0.07.
--> Working on AnyEvent
Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-7.17.tar.gz ... OK
Configuring AnyEvent-7.17 ... OK
Building and testing AnyEvent-7.17 ... FAIL
! Installing AnyEvent failed. See /Users/daveh/.cpanm/work/1620641296.17020/build.log for details. Retry with --force to force install it.
--> Working on Coro
Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/Coro-6.57.tar.gz ... OK
Configuring Coro-6.57 ... OK
==> Found dependencies: AnyEvent, Guard
--> Working on Guard
Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/Guard-1.023.tar.gz ... OK
Configuring Guard-1.023 ... OK
Building and testing Guard-1.023 ... FAIL
! Installing Guard failed. See /Users/daveh/.cpanm/work/1620641296.17020/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'AnyEvent' is not installed, Module 'Guard' is not installed
! Bailing out the installation for Coro-6.57.
--> Working on Compiler::Lexer
Fetching http://www.cpan.org/authors/id/G/GO/GOCCY/Compiler-Lexer-0.23.tar.gz ... OK
==> Found dependencies: Module::Build::XSUtil
--> Working on Module::Build::XSUtil
Fetching http://www.cpan.org/authors/id/H/HI/HIDEAKIO/Module-Build-XSUtil-0.19.tar.gz ... OK
Configuring Module-Build-XSUtil-0.19 ... OK
==> Found dependencies: File::Copy::Recursive::Reduced
--> Working on File::Copy::Recursive::Reduced
Fetching http://www.cpan.org/authors/id/J/JK/JKEENAN/File-Copy-Recursive-Reduced-0.006.tar.gz ... OK
Configuring File-Copy-Recursive-Reduced-0.006 ... OK
Building and testing File-Copy-Recursive-Reduced-0.006 ... FAIL
! Installing File::Copy::Recursive::Reduced failed. See /Users/daveh/.cpanm/work/1620641296.17020/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'File::Copy::Recursive::Reduced' is not installed
! Bailing out the installation for Module-Build-XSUtil-0.19.
! Installing the dependencies failed: Module 'Module::Build::XSUtil' is not installed
! Bailing out the installation for Compiler-Lexer-0.23.
--> Working on AnyEvent::AIO
Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-AIO-1.1.tar.gz ... OK
Configuring AnyEvent-AIO-1.1 ... OK
==> Found dependencies: AnyEvent, IO::AIO
! Installing the dependencies failed: Module 'AnyEvent' is not installed, Module 'IO::AIO' is not installed
! Bailing out the installation for AnyEvent-AIO-1.1.
! Installing the dependencies failed: Module 'Compiler::Lexer' is not installed, Module 'AnyEvent::AIO' is not installed, Module 'IO::AIO' is not installed, Module 'Class::Refresh' is not installed, Module 'Coro' is not installed, Module 'AnyEvent' is not installed
! Bailing out the installation for Perl-LanguageServer-v2.2.0.
miversen-mwl commented 3 years ago

Im not the maintainer but a few things to note here. You should consider providing your perl version as that is important here. Perl::LanguageServer should be run against perl version 5.18 or newer

https://github.com/richterger/Perl-LanguageServer/blob/f14ef76543136e4c79de91a1eccad250f75e428a/lib/Perl/LanguageServer.pm#L3

Additionally, your error indicates that your issue is not with the Perl Language Server being installed but with its dependencies

Example

! Installing Guard failed. See /Users/daveh/.cpanm/work/1620641296.17020/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'AnyEvent' is not installed, Module 'Guard' is not installed
! Bailing out the installation for Coro-6.57.

Read the files that cpanm is telling you to check out, they will have more info on why the installation failed

davehodg commented 3 years ago

On a brand new Mac, version 11.2.3, perl version 5.28 it installed fine. Hopefully this will make VSCode happy.

richterger commented 3 years ago

Not an issue of Perl::LanguageServer, but a general Mac/Perl issue.