in reply to Re: RFC: LSP for Perl
in thread RFC: LSP for Perl

Is it really that simple?

From my understanding does plsense.el rely heavily on cperl.el, at least for parsing the language.

It's not clear for me how LSP expects this to be done, if it's really a "Server" then you'd need an external parsing entity, like PPI.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: RFC: LSP for Perl
by zakame (Pilgrim) on Sep 04, 2018 at 04:59 UTC

    It seems already here: Perl::LanguageServer.

    Note it uses Compiler::Lexer, not PPI, so it is definitely quite an early version to test the waters.

      Thanks, Compiler::Lexer sounds interesting, though there is practically no documentation what it does and how.

      update

      a quick look into the code reveals that it's similar to PPI in trying to parse Perl code. :(

      IMHO running perl -c and analyzing the resulting op-tree would be safer...

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice