This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 149396

Summary: Cannot create Python project if python was installed via NBM
Product: python Reporter: tonybeckham <tonybeckham>
Component: ProjectsAssignee: ardavis26 <ardavis26>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Exception throwen in Netbeans.

Description tonybeckham 2008-10-07 18:09:47 UTC
If you install python support by downloading the NBMs and installing in NB6.5 via tools->plugins.  Now python project is
an option for a new project but you are unable to actually create one, exception is thrown.

java.util.concurrent.ExecutionException: java.io.IOException: Cannot run program
"/Users/nshanny/.netbeans/6.5beta/jython-2.5/bin/jython" (in directory "/Users/nshanny/.netbeans/6.5beta"): error=13

See exception report: http://statistics.netbeans.org/analytics/stacktrace.do?id=92042
Comment 1 tonybeckham 2008-10-08 19:05:15 UTC
Created attachment 71396 [details]
Exception throwen in Netbeans.
Comment 2 Torbjorn Norbye 2008-10-25 00:05:41 UTC
The bug here is that the Update client does not preserve execute permissions on bits. If you install Jythan via the
plugin center, none of the scripts in Jythin/bin will be executable.

For JRuby I added a workaround for this: My module restored method goes and chmods everything executable.

See ruby.platform's  RubyInstallation.getInstance().ensureExecutable();
(which is called from ruby.project's module installer.)
Comment 3 ardavis26 2008-10-25 16:08:30 UTC
The reason is wont create a project is that it needs a platform.  it cannot register the bundled jython because the nbm
turns off execution.  
Comment 4 ardavis26 2008-10-26 23:23:18 UTC
The platform manager was truncating part of the path to enable execution