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.
PHP templates are applied according the context. For this reason the PHPCodeTemplateFilter should have uptodate parse result and run an UserTask to find the context. The PHPCodeTemplateFilter should wait for the result of UserTask, but the user task is not returned due to a deadlock in Parsing API.
The reason is that PHP submits twice the UT (PHPCodeTeplateFilter) into runWhenScanFInished one by CC second by teb expansion. The CC thread locked the infrastructure and wait until the rWSF is done but it cannot complete as it waits on the end of CC.
Fixed jet-main http://hg.netbeans.org/jet-main/rev/b1f1ea0ec50c
Don't forgot to fix the PHPCodeTemplateFilter to use the Future<Future<Void>> :-) See attached diff, only the future.get(),get() should be changed to: try { future.get(TIMEOUT,TU.MS).get(TIMEOUT,TU.MS) } catch (TimeoutException te) { }
Created attachment 108099 [details] PHPCTF.diff
Thanks to Tomas for the quick fix.
:-)
This issue is connected with issue 197887 (P1) ... so Petr, would you mind to fix it into 7.0 Patch 1 ?
Yes, it would be good to have it in the patch. Without this, the fix for issue #197887 doesn't work.
Unfortunately the fix is even more complicated. Some refactoring unit tests are failing as they expect that parseWhenScanFinished do ordering, this is not stated in the javadoc, but semantic of the method does it. So there can be clients which relay on it as the refactoring unit test. I have changed the fix.
Fixed jet-main http://hg.netbeans.org/jet-main/rev/d2c12aa34466
Integrated into 'main-golden', will be available in build *201105050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b1f1ea0ec50c User: Tomas Zezula <tzezula@netbeans.org> Log: #198307:UserTask is not run in some circumstances
For the list of included fixed bugs please check http://wiki.netbeans.org/NetBeans70PatchesInfo
Transplanted into release70_fixes http://hg.netbeans.org/releases/rev/bb0863e64091 http://hg.netbeans.org/releases/rev/e0009604cb48 http://hg.netbeans.org/releases/rev/0087ed13cbf7