Opened 4 years ago

Closed 3 years ago

#1167 closed defect (fixed)

Some @INC manipulation seems to be incorrect in Padre

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

Description

I have an installed version 0.78 of Padre and I was trying to run the release candidate of 0.84 using

perl -Ilib script/padre

It launched well but when I tried to turn on syntax checking Padre crashed with this:

Bareword "Padre::Wx::ID_TIMER_SYNTAX" not allowed while "strict subs" in use at /home/gabor/perl5/lib/perl5/Padre/Wx/Syntax.pm line 193.
Bareword "Padre::Wx::ID_TIMER_SYNTAX" not allowed while "strict subs" in use at /home/gabor/perl5/lib/perl5/Padre/Wx/Syntax.pm line 203.
Compilation failed in require at lib/Padre/Wx/Main.pm line 609.

Which indicates it was trying to load an installed module instead of the one from the local directory. I can reproduce it this way

  • run perl -Ilib script/padre share/examples/absolute_beginner/01_hello_world.pl
  • press F5 to run the script
  • Turn on Syntax Checking
  • kaboom

I added the printing of @INC on the line before the crashing line in Main.pm

/home/gabor/.local/share/.padre/plugins
lib
/home/gabor/perl5/lib/perl5/x86_64-linux-gnu-thread-multi
/home/gabor/perl5/lib/perl5
/home/gabor/perl5/lib/perl5/x86_64-linux-gnu-thread-multi
/etc/perl
/usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
/usr/local/lib/site_perl

which imho does not explain the problem.

Change History (1)

comment:1 Changed 3 years ago by bowtie

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