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.
Summary: | Unable to report canceled scanning | ||
---|---|---|---|
Product: | editor | Reporter: | Tomas Danek <musilt2> |
Component: | Parsing & Indexing | Assignee: | Svata Dedic <sdedic> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmirilovic, sdedic |
Priority: | P2 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Tomas Danek
2013-05-22 09:17:03 UTC
The progress can be canceled just once, but the exception should be sent by the first cancel. Some time ago, I added a code that prevents report from being done within 3 minutes after scanning starts. This was consulted with Tomas Zezula - and the reason was mainly because reports, which collected data from just a short period of time after scan starts typically did not provide any useful results and only created garbage in exception reporter. The time the reporting is blocked can be configured using -J-Dorg.netbeans.modules.parsing.impl.indexing.LogContext.cancelTreshold=x on the commandline, 'x' is a value in seconds, can be 0. The blocking code can be improved, e.g. display a message immediately, that the report will be delayed, and the report could be actually created after the necessary time elapses. Please provide an alternative idea. I think the inability to repeatedly request cancel should be filed as a separate issue (enhancement ?) against Progress API. The Background scanning task returns false from its cancel method, but Progress UI still tracks the task as 'cancel pending' for an infinite period of time. Integrated into 'main-golden', will be available in build *201305252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/49f396c522bd User: Svata Dedic <sdedic@netbeans.org> Log: #230086: if scan is cancelled early, delay the report data collection. Implemented self-profiling, default off Integrated into 'releases', will be available in build *201305272201* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/532a3ea016e0 User: Svata Dedic <sdedic@netbeans.org> Log: #230000, #230086: Scan cancel exception msg contains indexer name, if scan is cancelled early, the report will be delayed [backport from trunk] Svato, please increase also spec. version, so that this fix could be reachable via UC, thanks. keeping candidate keyword to be sure it's fixed in NB 7.3.1 Incremented in http://hg.netbeans.org/releases/rev/c5a923d254bc Integrated into 'releases', will be available in build *201305291404* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/c5a923d254bc User: Svata Dedic <sdedic@netbeans.org> Log: #230086: incrementing spec version verified in bits from staging UC. |