Opened 4 years ago

Last modified 2 years ago

#1053 assigned defect

strange behavior of syntax check

Reported by: zenogantner Owned by: azawawi
Priority: major Milestone:
Component: Syntax Checking Version: trunk
Keywords: Cc:

Description

The syntax check feature generally works for me.

However, when I open a file from the Padre project, it always shows compilation errors that should not happen.

When running Padre via dev.pl, I do not see those problems.

See the attached screenshots.

Ubuntu 10.04
This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi

Attachments (2)

padre-syntax-check-1.png (106.0 KB) - added by zenogantner 4 years ago.
padre-syntax-check-2.png (95.4 KB) - added by zenogantner 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by zenogantner

Changed 4 years ago by zenogantner

comment:1 Changed 4 years ago by zenogantner

I also get this error, which is currently not properly displayed by the GUI, but I could catch it with Data::Dumper:

$VAR1 = bless( {
                 'file_msgpath' => 'lib/Padre/Constant.pm',
                 'file' => 'Constant.pm',
                 'message' => 'mkdir /.padre: Permission denied',
                 'line' => 117,
                 'file_abspath' => '/mnt/data/src/padre/Padre/lib/Padre/Constant.pm'
               }, 'Parse::ErrorString::Perl::ErrorItem' );

comment:2 Changed 4 years ago by zenogantner

My guess is this code here in Constant.pm:

# Files and Directories
use constant CONFIG_DIR => File::Spec->rel2abs(
	File::Spec->catdir(
		defined( $ENV{PADRE_HOME} ) ? ( $ENV{PADRE_HOME}, '.padre' )
		: ( File::HomeDir->my_data,
			File::Spec->isa('File::Spec::Win32') ? qw{ Perl Padre }
			: qw{ .padre }
		)
	)
);

comment:3 Changed 4 years ago by azawawi

Any update on this one, Zeno?

comment:4 Changed 4 years ago by zenogantner

Problem persists, as described.

comment:5 Changed 4 years ago by szabgab

  • Component changed from advanced perl tools to Syntax Checking

comment:6 Changed 3 years ago by zenogantner

This problem persists as of r16507.

comment:7 Changed 2 years ago by bowtie

  • Owner set to azawawi
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.