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

Geertjan Wielenga edited comment on NETBEANS-6330 at 12/23/21, 2:53 PM:
------------------------------------------------------------------------

Are you sure this is right, i.e., do you need src/main to be both in your 
main/java AND in your main/resources?

sourceSets {
    main {
        java {
            srcDir 'src/main'
            srcDir "$buildDir/generated-src"
        }
        resources {
            srcDir 'src/main'
            srcDir 'dev/icons'
        }
    }
    test {
        java {
            srcDir 'src/test'
        }
    }
}


was (Author: geertjanwielenga):
Are you sure this is right, i.e., do you need src/main to be both in your 
main/java AND in your main/resources?

sourceSets {
    main {
        java

             {             
               srcDir 'src/main'             
               srcDir "$buildDir/generated-src"        
             }

        resources

{             srcDir 'src/main'             srcDir 'dev/icons'         }

    }
    test {
        java

{             srcDir 'src/test'         }

    }
}

> Background scanning of projects
> -------------------------------
>
>                 Key: NETBEANS-6330
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6330
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.6
>         Environment: OS: Windows 10
> Java: JDK 11.0.3
> Gradle 4.10.2 (but using Gradle wrapper for 5.6.4)
>            Reporter: Hervé Bitteur
>            Priority: Blocker
>
> Netbeans gets stuck on "Background scanning of projects..." at 96% value, but 
> with CPU still around 20-30%
> This happens with versions: 12.6, 12.5, 12.3, perhaps older ones as well
> The project at hand is a Gradle project (see environment below). I can still 
> build the project from within Netbeans, I can run it, but Netbeans IDE is now 
> useless.
> I tried to abort the scan, to relaunch Netbeans, to empty Netbeans cache... I 
> can sometimes see the end of this scan, but I can't precisely tell you in 
> which conditions.
> Project is then flagged with a red exclamation point, as well as most Java 
> packages and Java files within the project, goto declaration often fails, as 
> well as Usages, etc.
> I have been fighting with this for a couple of weeks, I'm totally stuck.
> To reproduce the problem:
> 1/ git clone [https://github.com/Audiveris/audiveris.git]
> 2/ then open Netbeans on the project created in audiveris sub-directory
> Please tell me if you need additional information
> /Hervé (owner of Audiveris project)
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to