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 181361 - Provide pty-helpers for Mac
Summary: Provide pty-helpers for Mac
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-01 08:16 UTC by soldatov
Modified: 2010-03-18 13:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2010-03-01 08:16:30 UTC
NetBeans Platform Dev (Build 201002280200)
MacOSX

Sceanrio:
- Create Welcome project
- Run it
==>
java.util.MissingResourceException: bin/nativeexecution/MacOSX-x86/pty_open
	at org.netbeans.modules.nativeexecution.support.HelperUtility.getLocalFileLocationFor(HelperUtility.java:123)
	at org.netbeans.modules.nativeexecution.support.HelperUtility.getPath(HelperUtility.java:86)
Caused: java.io.IOException
	at org.netbeans.modules.nativeexecution.support.HelperUtility.getPath(HelperUtility.java:105)
	at org.netbeans.modules.nativeexecution.pty.PtyCreatorImpl.allocate(PtyCreatorImpl.java:71)
	at org.netbeans.modules.nativeexecution.pty.PtyCreatorImpl.allocate(PtyCreatorImpl.java:62)
	at org.netbeans.modules.nativeexecution.api.pty.PtySupport.allocate(PtySupport.java:147)
	at org.netbeans.modules.nativeexecution.PtyNativeProcess.<init>(PtyNativeProcess.java:72)
	at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(NativeProcessBuilder.java:171)
	at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1.call(NativeExecutionService.java:105)
	at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1.call(NativeExecutionService.java:100)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[catch] at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1356)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1894)
Comment 1 Andrew Krasny 2010-03-02 01:53:09 UTC
This should not be so visible after http://hg.netbeans.org/cnd-main/rev/0238c9097ccb

And for Mac I have to adopt native utils of internal terminal.. 
Looks like poll() doesn't work for pty I/O (http://www.tombee.me.uk/?p=3) - so need to switch to select()
Comment 2 soldatov 2010-03-02 03:24:09 UTC
Confirmed. This exception doesn't appear if project is launched in "External Terminal" or "Output Window"
Comment 3 Andrew Krasny 2010-03-18 13:59:38 UTC
http://hg.netbeans.org/cnd-main/rev/ba9c6c65fad0