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.
Summary: | Need Ant input support (was: Unable to specify EOF character from Output Window "[FFJ CUSTBUG]") | ||
---|---|---|---|
Product: | third-party | Reporter: | kishm <kishm> |
Component: | -- Other -- | Assignee: | issues@third-party <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | akemr, issues, jzajicek, mihmax, pnejedly |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
kishm
2002-04-19 00:04:35 UTC
CCing Ales, maybe this is his issue. Ales, are the right person? I have the same problem in both Netbeans 3.3.2 & 3.4 beta 1 It's surely a serious problem and it avoids running/debugging some console Java programs. I'm raising priority to P2. Should I mark it as a defect? Problem is not in OW. Ctrl-Z ( ascii 26) is passed to input stream, so I think problem could be in execution which works with redirecting of stdin (maybe ProcessExecutor.CopyMaker or core SysIn??) I modified above testing program to display eof character: try { boolean eof = false; while (!eof) { len = fis.read(buf, 0, 2048); for (int i = 0; i < len; i++) { System.out.println(" :" + (byte) buf[i]); } System.out.println("len:" + len); if ( len == -1 ) { System.out.println("eof"); eof = true; } else { System.out.print("You Typed : "); fos.write(buf, 0, len); } } } catch (IOException e) { System.out.println("chyba"); e.printStackTrace(); } System.out.println("standard program end"); Target milestone was changed from '3.4' to TBD. Target milestone was changed from '3.4' to TBD. This should be dealt with in 4.0 timeframe. Well, if I'm not too annoying (I raised e-mail storm due to 3.4.1), what's the source of this problem? I'd like to fix this in 3.4.1 (I mean, that PERSONALLY I find this bug annoying, and I'll try to cut some time from my work, my 3.4.1 Release Coordination, my Russian NB project, etc. to look at this bug), and I surely need your help in the source .java file to look at. Thanks, Maxym Mykhalchuk David! Ales! Do you hear me? ;-) please answer, where's the source of this bug? I don't know, really :-) It could be somewhere in execution IMO - see my earlier comment.. I also can hear you and also don't have an idea. Someone would have to grab debugger and start the hard work ;-( I have marked this bug as target milestone 4.0 - at least for me. If there is someone willing to check this sooner I will gladly accept such help. Otherwise - I am sorry for now. Ales's hint with starting from ProcessExecutor sounds promising. I am ready to review the fix - if there is someone to create such a diff. Best, David Starting the investigation Further update: two days Two days lasted longer then real two days ;-( Sorry. starting with ProcessExecutor didn't help much, or maybe I debugged wrong ;o) As for now - I haven't give up and try again, but... What I've found out is that there's a PrintWriter (to where the chars are written) and PrintReader (attached to PrintWriter), that gives the chars out to Terminal Emulator, but nowhere I can see what class gives the chars to the debugged application. BTW: How to pass a programmatic EOF (not a ^Z char, but rather simply say him - "Hey, you're finished") to smth. like PrintWriter? I'll try to experiment with manual closing different streams to find out, the closure of which will yield to the application finish. Next update (C) Kristen (Collab.net support) ;-) ?? don't know, really Sincere, Maxym Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be integrated into release341 one branch. The plan at http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be produced on Dec01. That did not happen due to a lot of outstanding not integrated candidates like this one. Would it be possible to spend few minutes by backporting this fix? Thank you in advance. Since there is no fix available for 341 I am removing the keyword and leaving it opened for 4.0. Decreasing priority - not that critical IMHO. If someone disagrees and wants to invest the time --- it is all yours ;-)) I tried, but I failed to find the source of the bug, so P3 is OK imho Changed owner David S. -> David K. changing owner dkonecny -> pnejedly Needs to be reevaluated as Ant input. stdin doesn't work at all (seems it is EOF all the time) under new projects system. The output window and Ant engine support console input. Ant 1.6.1 supports it for unforked apps. Currently it does not support it for forked apps; I have submitted a patch to ant.apache.org, we'll see if it is accepted for 1.6.2 or not. *** This issue has been marked as a duplicate of 47708 *** |