bscan / PerlNavigator

Perl Language Server that includes syntax checking, perl critic, and code navigation
MIT License
207 stars 40 forks source link

Fix warnings via namespace::autoclean #135

Closed oalders closed 3 months ago

oalders commented 3 months ago

On Perl 5.40 a new warning is introduced when the import method of an unknown package is called.

https://perldoc.perl.org/perldelta#Calling-the-import-method-of-an-unknown-package-produces-a-warning

This is seen via PerlNavigator because Inquisitor.pm removes namespace::clean and namespace::autoclean from %INC. The solution is to add stub import subs for these packages so that the Perl interpreter no longer believes that they do not exist.

Bildschirmfoto 2024-08-07 um 3 16 27 PM
bscan commented 3 months ago

Looks good to me. Thanks!