Ticket #1167 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Some @INC manipulation seems to be incorrect in Padre

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


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


which imho does not explain the problem.

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.