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 257975 - Terminal does not display output of jshell
Summary: Terminal does not display output of jshell
Status: STARTED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 8.1
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-13 20:45 UTC by muellermi
Modified: 2016-06-08 09:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (90.85 KB, text/plain)
2016-02-13 20:45 UTC, muellermi
Details
IDE log (102.65 KB, text/plain)
2016-02-29 13:23 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2016-02-13 20:45:41 UTC
Product Version = NetBeans IDE Dev (Build 201602130002)
Operating System = Windows 8.1 version 6.3 running on amd64
Java; VM; Vendor = 1.8.0_72
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.72-b15

Reproducibility: Happens every time

STEPS:
  * Open terminal
  * cd /<JDK9 home>/bin
  * ./jshell.exe
--> Java REPL is started
  * /?

ACTUAL:
  nothing happens

EXPECTED:
  help is displayed

It is still possible to enter something. Whatever output shall be displayed, it is hidden
Comment 1 muellermi 2016-02-13 20:45:47 UTC
Created attachment 158486 [details]
IDE log
Comment 2 ilia 2016-02-24 13:52:13 UTC
Works as expected on Linux, going to investigate it on Windows. May be the problem with \n.
Comment 3 ilia 2016-02-26 10:19:12 UTC
Works for me on Windows too.

To understand the cause of this problem, please

1) Run Netbeans with "-J-Dnativeexecution.support.logger.level=100". Try to run jshell, and provide a message log.
2) Run "vi" from Terminal. Does it work as expected?

Thanks
Comment 4 muellermi 2016-02-29 13:23:04 UTC
I checked on a second pc, win7 version 6.1
No out put for jshell (current build 107)
Other programs like vi print to screen as expected

ide started with -J-Dnativeexecution.support.logger.level=100
Comment 5 muellermi 2016-02-29 13:23:10 UTC
Created attachment 158674 [details]
IDE log
Comment 6 muellermi 2016-02-29 13:27:44 UTC
I searche dthe log for "jshell": There is an entry generated whilst sending the last comment of this issue, but no entry for the jshell invocation....
Comment 7 ilia 2016-06-01 12:42:46 UTC
The issue is reproducible on my machine now.
What I've figured out so far: this looks more like a cygwin issue.

Please run a cygwin terminal (it's in C:\cygwin64)
and try the steps you described in Comment #1.
Do you get any output for "/?"   ?
Comment 8 ilia 2016-06-01 16:33:09 UTC
Same behaviour for jshell from build #120