Perl5-IDEA icon indicating copy to clipboard operation
Perl5-IDEA copied to clipboard

cpanfile parsing issue

Open TBSliver opened this issue 6 years ago • 4 comments

Getting issue in cpanfile, its being recognised as a cpanfile (has the Meta::CPAN logo for the file), however im getting Unable to find sub definition, declaration, constant definition or typeglob aliasing errors on:

  • requires
  • on
  • feature

Version info:

IntelliJ IDEA 2019.1.3 (Ultimate Edition)
Build #IU-191.7479.19, built on May 28, 2019
JRE: 1.8.0_202-release-1483-b58 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.9.0-9-amd64

With perl plugin version v2019.1.3, on Debian Stretch.

Not sure how to provide any extra debug info, but let me know if theres a way to get to the PSI info in a normal running IDEA.

TBSliver avatar Jun 24 '19 13:06 TBSliver

Do you have carton installed in the selected perl interpreter?

hurricup avatar Jun 24 '19 17:06 hurricup

Ah! right so the fix is to install Module::CPANfile. I noticed previously somewhere you had a popup asking to install particular modules, may be worth adding a hint to cpanfile with errors to install Module::CPANfile

TBSliver avatar Jun 24 '19 19:06 TBSliver

These popups appears when you trying to execute something and this something reporting a missing module. Ye, probably a good idea

hurricup avatar Jun 25 '19 03:06 hurricup

Seems this dsl should be able to resolve to other things in carton/cpanminus

hurricup avatar Mar 10 '23 18:03 hurricup