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 - Sleep delay before resuming classpath indexing during pause in build can be too short
Summary: Sleep delay before resuming classpath indexing during pause in build can be t...
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2017-03-06 19:02 UTC by Jesse Glick
Modified: 2018-04-16 14:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (not yet tested) (1.09 KB, patch)
2017-03-06 19:05 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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