perlintellij-ideaideperl-moduleintellij-plugin

Unable to find package file warning in Intellij and Perl plugin


I've the Intellij ultimate edition with the Perl installed.

I'm getting the title warning for all my *.pm files for keywords like warning, strict, constant, as you can see from my screenshot here:

enter image description here

Why this happens?


Solution

  • I had this issue until I ensured that my local perl was properly configured in the IDE preferences.

    1. File >> Preferences ... or Command + , on the Mac.
    2. Language & Frameworks >> Perl5 >> Project
    3. Choose your perl interpreter from the dropdown. If one doesn't exist, then select the Gear button to the right of the dropdown to set one up. (I'm using perlbrew)
    4. Choose a target version to ensure the most correct language features.