Ticket #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
Change History
comment:1 Changed 3 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 3 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 }
)
)
);
Note: See
TracTickets for help on using
tickets.
