cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
When you search for Perl on their extensions page, a whole sh*tload of them come up. Is anyone using VS Code? If so can you make recommendations which extensions to install?
UPDATE: Welp, further investigation shows that in order for VS Code to work properly with Perl, you need to install Perl::LanguageSever, and dependencies of that will not install properly on Windows. It apparently works with WSL, though you need to install the Perl dev libraries, according to some threads I found.
UPDATE 2: After some effort I got Perl::LanguageServer and its dependencies installed under WSL2/Ubuntu. I hit "run and debug," and the progress indicator runs for a couple of seconds, then it goes away and that's it. The script neither runs nor stops a a breakpoint and there are no error messages. So I'm stuck. If anyone has ideas please LMK.
UPDATE 3: SOLVED. In case anyone else tries to do this, here is what I learned. First, Perl::LanguageServer will not install on Windows. You will need to enable WSL2 and install it on Ubuntu. Follow the instructions on the github page for the module that instruct you to use apt to install some libraries before using cpan to install the module. Second, install VS Code on the Windows side using the MSI installer. Third, start VS Code from the Ubuntu side using the code command. You have to open a folder and make sure you trust that folder. Fourth, open the extensions tab and search for & install (in VS Code) Perl "Language Server and Debugger for Perl" Gerald Richter. Fifth create a Perl script, open the run and debug tab, then click Run and Debug.
At least that did it for me. Naturally, YMMV.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: VS Code plugins for Perl
by davies (Monsignor) on Jul 04, 2024 at 10:58 UTC | |
by cormanaz (Deacon) on Jul 04, 2024 at 18:02 UTC | |
by davies (Monsignor) on Jul 04, 2024 at 20:41 UTC | |
|
Re: VS Code plugins for Perl
by haj (Vicar) on Jul 09, 2024 at 09:59 UTC | |
by cormanaz (Deacon) on Jul 09, 2024 at 15:15 UTC | |
|
Re: VS Code plugins for Perl
by The_Dj (Scribe) on Jul 09, 2024 at 03:50 UTC | |
by choroba (Cardinal) on Jul 09, 2024 at 09:33 UTC | |
by pryrt (Abbot) on Jul 09, 2024 at 13:14 UTC | |
by cormanaz (Deacon) on Jul 09, 2024 at 15:13 UTC | |
by cormanaz (Deacon) on Jul 09, 2024 at 15:10 UTC | |
by NERDVANA (Priest) on Jul 10, 2024 at 01:21 UTC |