Bug 541441 - [code mining] Enabling code mining should indicate "code mining" progress in status bar
Summary: [code mining] Enabling code mining should indicate "code mining" progress in ...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.10   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 529127
Blocks:
  Show dependency tree
 
Reported: 2018-11-22 05:26 EST by Kalyan Prasad Tatavarthi CLA
Modified: 2021-10-19 14:23 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalyan Prasad Tatavarthi CLA 2018-11-22 05:26:04 EST
When code mining is enabled, to show the number of references in the editor some time is required. During this time the status bar should indicate that code mining is happening in the background.
Comment 1 Sarika Sinha CLA 2018-11-22 05:43:46 EST
@Angelo,
Please look into this for 4.11

For SWT class which had 17000 references it took close to 5-6 seconds and it gives a feeling that Code Minings did not work.
Comment 2 Mickael Istria CLA 2018-11-22 06:23:38 EST
This can apply to any editor. The completable future for code mining might better be a user job so it's visible in the UI and status bar.
Comment 3 Angelo ZERR CLA 2018-11-22 07:18:47 EST
Using a user job will break the codemining provider API. I think it's an hard task to use an user job. More codemining will not work with a simple java main if we use an user job.
Comment 4 Lars Vogel CLA 2018-11-22 08:59:50 EST
-1 for adding such info to the status bar/ progress view. I think is more confusing than helpful to the end user. 

IntelliJ provides a similar behavior and I also do not see reporting if the mining is calculating.
Comment 5 Sarika Sinha CLA 2018-11-22 21:50:49 EST
(In reply to Lars Vogel from comment #4)
> 
> IntelliJ provides a similar behavior and I also do not see reporting if the
> mining is calculating.

If we have technical issues to implement it, it's different but otherwise this should be the reason to add the feature  :)
Comment 6 Noopur Gupta CLA 2018-11-23 07:17:02 EST
*** Bug 541415 has been marked as a duplicate of this bug. ***
Comment 7 Lars Vogel CLA 2019-02-19 03:31:31 EST
Mass change, please reset target if you still planning to fix this for 4.11.
Comment 8 Mickael Istria CLA 2021-10-19 03:09:25 EDT
The code mining could first indicate immediately something like "? references (computing)" on the line and alter it to show the actual result when available.
Comment 9 Sarika Sinha CLA 2021-10-19 14:23:20 EDT
(In reply to Mickael Istria from comment #8)
> The code mining could first indicate immediately something like "?
> references (computing)" on the line and alter it to show the actual result
> when available.

+1