Ticket #1156 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

syntax check strangeness

Reported by: zenogantner Owned by: azawawi
Priority: minor Milestone:
Component: advanced perl tools Version: 0.82
Keywords: Cc:

Description

package TestClass?;
use strict;
use warnings;

sub is_type {
   my $status = 0;
   lala; # Error
   return $status;
}
This is also an error

Having the "?" after TestClass? somehow leads to the result that no syntax errors are shown when syntax checking is activated.

I have perl 5.10.1

Change History

comment:1 Changed 3 years ago by azawawi

  • Owner set to azawawi
  • Status changed from new to assigned

Nice catch! perl dev -t releases this valuable useful debug message and it means that no 'type' error item has been parsed by Parse::ErrorString::Perl.

# Mon Mar  7 16:57:17 2011 Padre::Wx::Syntax::render 'Cannot handle issue:
$VAR1 = bless( {
    \'file_msgpath\' => \'C:\\\\Users\\\\azawawi\\\\AppData\\\\Local\\\\Temp\\\\M_wdAj2Q96\',
    \'file\' => \'M_wdAj2Q96\',
    \'message\' => \'Invalid version format (non-numeric data), near "package TestClass"\',
    \'line\' => \'0\',
    \'file_abspath\' => \'C:\\\\Users\\\\azawawi\\\\AppData\\\\Local\\\\Temp\\\\M_wdAj2Q96\',
    \'near\' => \'package TestClass\'
    }, \'Parse::ErrorString::Perl::ErrorItem\' );
'

comment:2 Changed 3 years ago by azawawi

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed with #1136

Note: See TracTickets for help on using tickets.