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 270005

Summary: Sleep delay before resuming classpath indexing during pause in build can be too short
Product: projects Reporter: Jesse Glick <jglick>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal Keywords: PATCH_AVAILABLE
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Proposed patch (not yet tested)

Description Jesse Glick 2017-03-06 19:02:48 UTC
At least on my laptop, github.com/jenkinsci/jenkins/core/src/main/java/ takes more than 5s to compile, so NB starts trying to rescan the classpath (due to changes in generated sources) while the Maven build is still actually writing out class files, which causes unnecessary contention and sometimes compile-on-save mayhem. Would be better to make this delay longer by default, and configurable.
Comment 1 Jesse Glick 2017-03-06 19:05:28 UTC
Created attachment 163785 [details]
Proposed patch (not yet tested)
Comment 2 Jesse Glick 2017-03-06 19:06:20 UTC
cf. #227791