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 - Cannot create Python project if python was installed via NBM
Summary: Cannot create Python project if python was installed via NBM
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Projects (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: ardavis26
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 18:09 UTC by tonybeckham
Modified: 2009-01-15 01:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception throwen in Netbeans. (7.22 KB, text/plain)
2008-10-08 19:05 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
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