You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (JIRA)" <ji...@apache.org> on 2019/07/03 22:40:00 UTC

[jira] [Comment Edited] (NETBEANS-2794) Alt+F7 find usages not working in gradle project

    [ https://issues.apache.org/jira/browse/NETBEANS-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16878209#comment-16878209 ] 

Laszlo Kishalmi edited comment on NETBEANS-2794 at 7/3/19 10:39 PM:
--------------------------------------------------------------------

I still cannot reproduce, though I'm on Linux. I'm going to check how the index out of bound exception can happen in the code, I guess that is the responsible for not having the results.

Also one thing to note, probably it would fix the issue if you fix you correct the build.gradle as follows:
{code:java}
sourceSets {
  main {
    java {
      srcDirs = ['Src']
    }
    resources {
      srcDirs = ['Resources']
    }
  }
}{code}
Your definition adds the Src and Resource directories to the previously defined directories ( main/java/src and main/java/resources ), so that may cause some issues.


was (Author: lkishalmi):
I still cannot reproduce, though I'm on Linux. I'm going to check how the index out of bound exception can happen in the code, I guess that is the responsible for not having the results.

Also one thing to note, probably it would fix the issue if you fix you correct the build.gradle as follows:

{{sourceSets {}}
{{  main {}}
{{    java {}}
{{      srcDirs = ['Src']}}
{{    }}}
{{    resources {}}
{{      srcDirs = ['Resources']}}
{{    }}}
{{  }}}
{{}}}

Your definition adds the Src and Resource directories to the previously defined directories ( main/java/src and main/java/resources ), so that may cause some issues.

> Alt+F7 find usages not working in gradle project
> ------------------------------------------------
>
>                 Key: NETBEANS-2794
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2794
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>    Affects Versions: 11.1
>            Reporter: Michael D Billman
>            Assignee: Laszlo Kishalmi
>            Priority: Major
>         Attachments: Test.zip, image-2019-07-03-13-28-42-721.png, image-2019-07-03-13-29-06-221.png, messages.log
>
>
> I am having trouble with find usages not returning any results.  Sample project attached.
> public class CartonLocationNoticeMsg extends CartonLocationNotice
> {
> }
> ...
> public class CartonLocationNotice
> {
> }
> !image-2019-07-03-13-28-42-721.png!
> !image-2019-07-03-13-29-06-221.png!
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
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