richterger / Perl-LanguageServer

Language Server for Perl
Other
224 stars 51 forks source link

FindBin problems when syntax checking #123

Closed syberrus closed 2 years ago

syberrus commented 2 years ago

scripts that use $FindBin::Bin can't be syntax-checked, it is always an error, because $FindBin::Bin is always a project root, because $0 is '-'. Does this plugin feed file content to perl via stdin ? if so, maybe "$0 = 'original file path'" should be inserted as the first line?

richterger commented 2 years ago

Duplicate of #16