Opened 9 months ago

Last modified 8 months ago

#1511 new defect

Project Skeleton Generation not working in Win32

Reported by: itcharlie Owned by:
Priority: major Milestone:
Component: not classified yet Version: 1.00
Keywords: Cc:

Description

Following the steps outlined in this wiki on a trunk checkout:
http://padre.perlide.org/trac/wiki/Features/ProjectSkeletonGeneration

Generated the attached screen shot error.

Below is a copy of the error message in the command line:

Use of uninitialized value in pattern match (m) at C:/Users/cgonzalez/Desktop/
Padre/Padre?/lib/Padre/Wx/Dialog/ModuleStarter.pm line 165.
Use of uninitialized value in sprintf at C:/Users/cgonzalez/Desktop/Padre/Padre/
lib/Padre/Wx/Dialog/ModuleStarter.pm line 166.

Attachments (1)

screenshot (1).png (34.7 KB) - added by itcharlie 9 months ago.
screenshot of module starter error

Download all attachments as: .zip

Change History (2)

Changed 9 months ago by itcharlie

screenshot of module starter error

comment:1 Changed 8 months ago by itcharlie

Notes:
module starter when run via commandline works fine. 
Example of execution:

module-starter --module Testing --author "Charlie" --email itcharlie@gmail.com --builder Module::Install --license perl --verbose  --dir= C:\\Users\\cgonzalez\\Desktop\\Testing


The module-starter command is executed by  _execute_process_and_wait which is available in  line 114 inside Padre/Util/Win32.pm. 

I believe the reason why it fails is because the STDOUT and STERR files are in relative path format and it fails to read from the files in order to detect success/failure.

example of commands and options.
 $VAR1 = [
          'module-starter --module Testing --author "Charlie" --email itcharlie@gmail.com --builder Module::Install --license perl --verbose',
          '1>C:\\Users\\CGONZA~1\\AppData\\Local\\Temp\\A1LFhqrE1x',
          '2>C:\\Users\\CGONZA~1\\AppData\\Local\\Temp\\gK5FDJMkx7'
  ];


Note: See TracTickets for help on using tickets.