Ticket #311 (closed enhancement: fixed)

Opened 5 years ago

Last modified 2 years ago

catch errors and warnings given by ppi

Reported by: szabgab Owned by:
Priority: major Milestone:
Component: editor Version: 0.35
Keywords: Cc:


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.

Change History

comment:1 Changed 2 years ago by bowtie

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.