Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: RFC: LSP for Perl

by zakame (Pilgrim)
on Sep 07, 2017 at 06:52 UTC ( #1198820=note: print w/replies, xml ) Need Help??


in reply to RFC: LSP for Perl

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.

Replies are listed 'Best First'.
Re^2: RFC: LSP for Perl
by LanX (Archbishop) on Jan 04, 2018 at 05:33 UTC
    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.

        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

Re^2: RFC: LSP for Perl
by RonW (Parson) on Sep 07, 2017 at 19:38 UTC

    Thanks.

    Looks like it could be a good starting point.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1198820]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2019-05-20 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (128 votes). Check out past polls.

    Notices?