Hey Tomas,

 

Language Server Protocol looks super interesting. I’ve been using Visual Studio 
lately when writing C# and I have been feeling IDE envy when going back to 
writing Perl.

 

After reviewing https://langserver.org/, I think that Rich hasn’t organised the 
Github very well. In https://github.com/richterger/Perl-LanguageServer the 
Language Server is in lib/Perl and the LSP client is in clients/vscode/perl. 
Those should really be 2 separate repos imho, as they’re totally separate 
projects. The documentation leaves a lot to be desired too…

 

But after reviewing 
https://github.com/richterger/Perl-LanguageServer/blob/master/clients/vscode/perl/src/extension.ts,
 I think I have a better idea how it all hangs together. 

 

Looks like you have to pre-install Perl::LanguageServer on the target system 
(only install – not run), and then that Visual Studio Code extension starts up 
the server. The info at “Language server and runtime installation” at 
https://docs.microsoft.com/en-us/visualstudio/extensibility/adding-an-lsp-extension?view=vs-2019#get-started
 seems to indicate that as well. 

 

I commented on your Github issue too about how I see the Remote Debugging 
working. It looks like you tell Visual Studio Code what info to send via 
launch.json and then Perl::LanguageServer will create the desired process. That 
would require some changes to koha-testing-docker’s start up script. 

 

Anyway, looks interesting. I’d definitely be interested in trying this out. 
I’ll make a note to try it out sometime. 

 

David Cook

Systems Librarian

Prosentient Systems

72/330 Wattle St

Ultimo, NSW 2007

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

From: Koha-devel <[email protected]> On Behalf Of 
Tomas Cohen Arazi
Sent: Tuesday, 14 July 2020 10:35 PM
To: koha-devel <[email protected]>
Subject: [Koha-devel] KTD: Remote debugging (new way)

 

Maybe you've been following the latest German Perl Workshop 2020 news, but just 
in case, there's been an announcement of a full implementation of the Language 
Server protocol [1] for Perl [2].

 

As you can see in the langserver site, this is supported in most of the code 
editors available.

 

I haven't managed to have the time yet to put all the things together so we can 
use it to develop Koha.

 

If you have some ideas or time to discuss this, please let me know or share 
your ideas here so we can build an even better dev environment for Koha.

 

Thanks!

 

[1] https://langserver.org/

[2] 
https://github.com/richterger/Perl-LanguageServer/blob/master/docs/Perl-LanguageServer%20und%20Debugger%20f%C3%BCr%20Visual%20Studio%20Code%20u.a.%20Editoren%20-%20Perl%20Workshop%202020.pdf

--
Tomás Cohen Arazi
Theke Solutions (http://theke.io)
✆ +54 9351 3513384
GPG: B2F3C15F

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Koha-devel mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to