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 87345 - Quote sample is broken.
Summary: Quote sample is broken.
Status: RESOLVED DUPLICATE of bug 86984
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-17 15:33 UTC by alexandrov
Modified: 2006-10-17 22:19 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 alexandrov 2006-10-17 15:33:03 UTC
Open Quote sample project. Run project(F6). Project ask to enter customer name,
but you will see it only after input this name. Next commands of this project
also appear only after their execution. After all we receive "Run failed"...
Try debug the project(F5). Here commands appear in external console before you
execute them :) Final command is "To quit enter Q". Enter it in external
console, but you will not quit(for Linux and Solaris. For Windows you will).
Type "q" in Command textfield of the internal debugger console. Then you will
quit from program(it is abnormal behavior), but debugger session will still
alive(you will see "user program running"). Step, continue, finish debugger
session buttons are active, but debugger console(gdb) were closed.
Comment 1 _ gordonp 2006-10-17 16:25:50 UTC
Closing as a duplicate of IZ 86984. The root cause of this IZ is that you can't
perform real terminal I/O in the Output window. Our short-term fix is IZ 86984
which lets users choose to run their program with I/O sent to an external
terminal emulator (cmd.exe on Windows or something like xterm on Unix). Note
that this is a temporary solution!

Long term this will be fixed by IZ 84375. In that IZ I've asked the netbeans
core to provide us with either an Output window which does real I/O or to
provide an IPI which lets us implement that window but still have it managed
as a tab in the Output area.

*** This issue has been marked as a duplicate of 86984 ***
Comment 2 alexandrov 2006-10-17 18:07:42 UTC
I think there should \n included to every cout<< command from Quote sample. It
will help to avoid 1-st problem described in 76173
Comment 3 _ gordonp 2006-10-17 22:19:00 UTC
I'm not a big believer in making changes which hide bugs. They tend to make
it less important to fix the bug. 

In this case, the question I'd ask is "would it be better with or without the
'\n' character if run from a terminal?". I believe the answer is its better
without the newline as the output looks more like a prompt than simple output.