You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Niklas Matthies (Jira)" <ji...@apache.org> on 2020/08/14 10:17:00 UTC
[jira] [Created] (NETBEANS-4714) Find Usages incorrectly includes
downstream Maven dependants
Niklas Matthies created NETBEANS-4714:
-----------------------------------------
Summary: Find Usages incorrectly includes downstream Maven dependants
Key: NETBEANS-4714
URL: https://issues.apache.org/jira/browse/NETBEANS-4714
Project: NetBeans
Issue Type: Bug
Components: java - Refactoring, projects - Maven
Affects Versions: 12.0
Reporter: Niklas Matthies
Find Usages (e.g. for a Java class) includes occurrences in downstream Maven artifacts in the local repository (~/.m2), regardless of the Scope selected in the Find Usages dialog. E.g. even when selecting scope "Current File", the Maven repository is still searched. This can be quite slow, because _all_ matching versions of the downstream artifacts (= artifacts having a dependency on the current project) are searched.
Expected behavior: Downstream Maven artifacts should only be included if "Open Projects & Dependencies" or "Current Projects & Dependencies" is selected. Alternatively, there should be an option to include/exclude those.
The current behavior is a major performance problem for me. Taking a typical example case, Find Usages for a class in a medium-sized project takes 45 seconds to complete, with 259 occurrences found, 97 of which in ~25 different versions of three downstream artifacts. (In IntelliJ the equivalent search is instantaneous, by the way.)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists