Ticket #311 (new enhancement)
Opened 3 years ago
catch errors and warnings given by ppi
| Reported by: | szabgab | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | editor | Version: | 0.35 |
| Keywords: | Cc: |
Description
Recently I got this on the console:
Illegal parse state in 'foreach' type compound statement at /home/gabor/perl5lib/lib/PPI/Lexer.pm line 810.
It is indeed a warn() call in PPI but as I can see there are also die() calls and warn() calls.
We should wrap the whole ppi processor to catch all these warnings and errors, save the file that was parsed in a separate file and report the error so we can build test cases for PPI with those files
or code snippets.
Note: See
TracTickets for help on using
tickets.
