Ticket #1167 (closed defect: fixed)
Some @INC manipulation seems to be incorrect in Padre
|Reported by:||szabgab||Owned by:|
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
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.