Opened 4 years ago

Closed 4 years ago

#957 closed defect (fixed)

Syntax Check should use perl interpreter given in Preferences

Reported by: danboo Owned by:
Priority: major Milestone:
Component: editor Version: 0.63
Keywords: Cc:

Description

Our production environment specifies a non-threaded perl. In order to use Padre I have my own threaded perl that only has Padre (and prerequisites) installed from CPAN.

When editing documents with syntax highlighting enabled, I frequently come across 'use' errors due to missing CPAN modules. It appears that Padre::Perl::cperl() is finding my Padre-only perl interpreter.

However, if I run the offending script it appears to use the perl interpreter I specified in my preferences, and work as expected.

I think the syntax check using the same perl interpreter as the "Run" command, will avoid some confusing debugging situations.

If you want to give me some pointers to the right Padre modules, I'm happy to dig further and attempt a patch.

Change History (3)

comment:1 Changed 4 years ago by zenogantner

  • Priority changed from minor to major
  • Type changed from enhancement to defect

comment:2 Changed 4 years ago by zenogantner

Padre now (r13228) uses the perl given in Preferences.

Can you check whether it now works as you expect it?

It is still possible that there are problems with the include paths for Perl modules.

Please re-open if necessary.

comment:3 Changed 4 years ago by zenogantner

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