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 267362

Summary: ideopen should say something when file cannot be opened in terminal
Product: cnd Reporter: dnikitin <dnikitin>
Component: TerminalemulatorAssignee: ilia
Status: REOPENED ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Suggested patch

Description dnikitin 2016-07-29 20:08:42 UTC
now ideopen always returns "Opening 1 file(s)" even if a file does not exist and cannot be opened. 

bash-4.2$ ideopen file*
Opening 1 file(s) ...
bash-4.2$ 

File does not exist or I should wait for some time? 

Please add some message about failure of opening or that no one file is found.
Comment 1 ilia 2016-08-10 10:58:36 UTC
Created attachment 161620 [details]
Suggested patch

I attached a patch for this bug.

Applying this patch questionable, it slows  PROMPT_COMMAND ~ 110 times.
I will try to find a faster way.
Comment 2 ilia 2017-02-06 07:42:07 UTC
There is no easy fix to print a correct number of files to be opened. 
Suggested patch slows speed of the Terminal a lot.

It was decided to leave this message as is.
(btw, IDE really tries to open a file named 'file*' if globbing failed. It just fails to open this file silently.)
Comment 3 ilia 2017-05-23 07:33:07 UTC
Maybe move ideopen from PS1 to other variable, this will allow to apply the fix without performance issues.