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 - ideopen should say something when file cannot be opened in terminal
Summary: ideopen should say something when file cannot be opened in terminal
Status: REOPENED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-29 20:08 UTC by dnikitin
Modified: 2017-05-23 07:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suggested patch (1.22 KB, patch)
2016-08-10 10:58 UTC, ilia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.