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 227759 - Unexpected disabled code model
Summary: Unexpected disabled code model
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks: 207544
  Show dependency tree
 
Reported: 2013-03-21 09:09 UTC by Alexander Simon
Modified: 2013-03-25 02:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (2.86 KB, patch)
2013-03-21 10:39 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2013-03-21 09:09:14 UTC
Step to reproduce:
- start IDE
- open project
- exit from IDE while parsing
- conform exit and stop parsing
- Restart IDE
Expected behavior:
- code assistance enabled
Actual behavior:
- some times code assistance is disabled (races)
Comment 1 Alexander Simon 2013-03-21 09:18:04 UTC
Investigation:
ProgressListenerImpl defines Cancellable which should differ two cases:
- user cancels parsing => stop parsing and disable code assistance for project
- user exits from IDE => do not disable code assistance for project randomly
Comment 2 Alexander Simon 2013-03-21 10:39:01 UTC
Created attachment 132894 [details]
proposed patch
Comment 3 Alexander Simon 2013-03-21 10:39:22 UTC
Vladimir, please review patch
Comment 4 Vladimir Voskresensky 2013-03-22 21:35:26 UTC
We have to disable parse cancellation
Comment 5 Vladimir Voskresensky 2013-03-22 21:44:24 UTC
Alexander, please, review removed "cancel" support
http://hg.netbeans.org/cnd-main/rev/650cad17524f
Comment 6 Alexander Simon 2013-03-23 05:29:21 UTC
(In reply to comment #5)
> Alexander, please, review removed "cancel" support
> http://hg.netbeans.org/cnd-main/rev/650cad17524f

Fix is safe and resolves the problem.
Comment 7 Vladimir Voskresensky 2013-03-23 14:25:22 UTC
thanks.
Comment 8 Vladimir Voskresensky 2013-03-23 14:28:48 UTC
transplanted:
http://hg.netbeans.org/releases/rev/8f5f8a41e746
spec version
http://hg.netbeans.org/releases/rev/63a0ea9c0862
Comment 9 Quality Engineering 2013-03-25 01:36:40 UTC
Integrated into 'releases', will be available in build *201303242200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/8f5f8a41e746
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixup #227759 - Unexpected disabled code model
- parsing is cancellable only under flag -J-Dcnd.cancellable.parse=true
(transplanted from 650cad17524fcf48ab6fdbe167185599c96a0e0d)
Comment 10 Quality Engineering 2013-03-25 02:51:59 UTC
Integrated into 'main-golden', will be available in build *201303242300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/650cad17524f
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixup #227759 - Unexpected disabled code model
- parsing is cancellable only under flag -J-Dcnd.cancellable.parse=true