richterger / Perl-LanguageServer

Language Server for Perl
Other
224 stars 51 forks source link

Does not parse Perl files with no extension? #208

Open jaguart opened 4 months ago

jaguart commented 4 months ago

Newbie, so apologies if I've missed something. Environment: Windows 11 VSCode client, Debian WSL server - all appears to be working fine.

Our Perl scripts do NOT have a .pl extension.

I have "perl.fileFilter": [""] in settings.json

I see LS: initial parsing done, loaded 44 files, parsed files, 44 files and wonder about the number of parsed files being blank?

This screenshot shows a tiny script, the LS output and an empty Outline - I would have expected to see the sub foo in the Outline: image

So I think the LS has an issue with files without an extn?

jaguart commented 4 months ago

Hmmm - I note this error in the output too - perhaps not all is well with the WSL installation:

LS: ERROR: Unknown perlmethod _rpcnot_setTraceNotification at /usr/local/share/perl/5.36.0/Perl/LanguageServer.pm line 224.

jaguart commented 4 months ago

Hmmm - but this https://github.com/richterger/Perl-LanguageServer/issues/71 says this is not important... 🤷🏻

richterger commented 3 months ago

Currently the LanguageServer detects Perl files by looking at the extension. So files without extensions are not parsed. I would be necessary to open such files and try to find out if they are Perl files.