LanX has asked for the wisdom of the Perl Monks concerning the following question:
To be able to get a more detailed explanation of error messages one can either a priori use diagnostics for in-line expansion or a posteriori pipe an individual message through splain.¹
I'm thinking of adding a on-click interface for emacs cperl-mode to facilitate the latter (either by a tooltip or showing an extra pane). ( use diagnostics can easily make the output unreadable if too many messages are expanded )
Now I'm wondering if there are already any IDEs implementing this...
Searching didn't help much though this seems to be an obvious idea!(?)
Cheers Rolf
( addicted to the Perl Programming Language)
¹) demonstration:
> echo "Can't locate function in @INC"|splain Can't locate function in @INC (#1) (F) You said to do (or require, or use) a file that couldn't be found. Perl looks for the file in all the locations mentioned in @ +INC, unless the file name included the full path to the file. Perhaps +you need to set the PERL5LIB or PERL5OPT environment variable to say w +here the extra library is, or maybe the script needs to add the library + name to @INC. Or maybe you just misspelled the name of the file. See perlfunc/require and lib.
|
|---|