Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

RFC: LSP for Perl

by RonW (Parson)
on Sep 07, 2017 at 00:30 UTC ( #1198791=perlmeditation: print w/replies, xml ) Need Help??

When I went to to see if the latest major release was ready (it is, I'm late, as usual), I discovered something called "Language Server Protocol". Eclipse Oxygen supports it. Several other editiors/IDEs supposedly already support it.

The idea is that instead of each editor/IDE needing a plug-in for each additional language some one wants to support, each editor/IDE gets a LSP client plug-in and each language gets a LSP server.

I did some searching, but didn't find project creating a LSP server for Perl. Still, I think it would be a way to help get better support for Perl into the editors and IDEs that people want to use.

So, sisters and brothers, what do you think? would you be willing to contribute (and how)?

Thank you for your thoughts.

Replies are listed 'Best First'.
Re: RFC: LSP for Perl
by zakame (Pilgrim) on Sep 07, 2017 at 06:52 UTC

    Yep, this is something on my radar too for a while now. FWIW there's already plsense (albeit haven't seen changes to it in a while,) so maybe a first shot at LSP would be to make plsense talk LSP?

    I've added an issue to the plsense GitHub to try get things going.

      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

        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.


      Looks like it could be a good starting point.

Re: RFC: LSP for Perl
by etj (Beadle) on Dec 26, 2017 at 00:04 UTC

      Thanks. Looks like a decent start on a Language Server for Perl 5.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1198791]
Approved by kcott
Front-paged by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2019-05-22 23:05 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (140 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!