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 250985 - After updating JavaScript2 Editor [0.44.2->0.44.3] background scanning never finish
Summary: After updating JavaScript2 Editor [0.44.2->0.44.3] background scanning never ...
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: REGRESSION
: 251025 251027 251038 251048 251049 251052 251059 251065 251086 251174 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-07 04:51 UTC by alesak
Modified: 2015-03-27 09:56 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiling file when scanning continues to run for ever (9.41 KB, application/octet-stream)
2015-03-07 04:51 UTC, alesak
Details
Initial list with update before I had this issue (62.54 KB, image/png)
2015-03-10 09:06 UTC, qrazi
Details
The JavaScript editor with the patch (357.04 KB, application/octet-stream)
2015-03-10 12:50 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alesak 2015-03-07 04:51:56 UTC
Created attachment 152454 [details]
Profiling file when scanning continues to run for ever

After some projects are opened Bacground scanning stays running for ever, removed cache folder did not help. 

Deleting new org-netbeans-modules-javascript2-editor.jar from profile folder make IDE usable again. 

It is reproducible always when never module is present.
Comment 1 Tomas Zezula 2015-03-09 17:19:56 UTC
All time spent in o.n.m.javascript2.editor.model.impl.OccurenceBuilder.
Comment 2 Vladimir Riha 2015-03-10 07:26:56 UTC
Would it be possible to share the project? Either attach it here of send via email?
Comment 3 Vladimir Riha 2015-03-10 07:42:32 UTC
*** Bug 251052 has been marked as a duplicate of this bug. ***
Comment 4 qrazi 2015-03-10 07:46:19 UTC
First my apologies for changing the OS on this bug. Didnt see this was not my bugreport, but the duplicate of my bug. 

Secondly, my bug, 251052, has a project attached. Can you use that to reproduce?
Comment 5 qrazi 2015-03-10 08:51:17 UTC
I just copied the older 0.44.2 version of org-netbeans-modules-javascript2-editor.jar that I got from a colleague who didn't install the latest updates yet to my Netbeans 8.0.2 install. After that the background scanning issue is not reproducable anymore.
Comment 6 qrazi 2015-03-10 09:06:03 UTC
Created attachment 152520 [details]
Initial list with update before I had this issue

List taken from another colleagues Netbeans install (same OS, Java, etc)
Comment 7 qrazi 2015-03-10 09:06:36 UTC
Some more info: my colleague uninstalled the Knockout HTML-plugin and then installed all available updates. He did not have this issue.

I then uninstalled Knockout HTML plugin, cleared my Netbeans cache directory in AppData\Local and installed available updates (which at this point was only the Javascript2 editor from 0.44.2 to 0.44.3, needed for the Angular plugin).

Doing the update this time did not case the project background scanning issue. I compared the previous 0.44.3 .jar with my current 0.44.3 .jar and Beyond Compare did not see any differences.
Comment 8 qrazi 2015-03-10 09:49:09 UTC
(In reply to qrazi from comment #7)
> Some more info: my colleague uninstalled the Knockout HTML-plugin and then
> installed all available updates. He did not have this issue.
> 
> I then uninstalled Knockout HTML plugin, cleared my Netbeans cache directory
> in AppData\Local and installed available updates (which at this point was
> only the Javascript2 editor from 0.44.2 to 0.44.3, needed for the Angular
> plugin).
> 
> Doing the update this time did not case the project background scanning
> issue. I compared the previous 0.44.3 .jar with my current 0.44.3 .jar and
> Beyond Compare did not see any differences.

I have to retract this comment. After opening a second project which I know is affected by this issue as well, I still got it. For now I'm back on 0.44.2 version of the jar, hoping this issue will be resolved.
Comment 9 Marian Mirilovic 2015-03-10 10:30:12 UTC
Petr, could we fix this ASAP ?
Comment 10 Jiri Skrivanek 2015-03-10 12:39:22 UTC
*** Bug 251065 has been marked as a duplicate of this bug. ***
Comment 11 Petr Pisl 2015-03-10 12:44:40 UTC
Fixed in releases:
http://hg.netbeans.org/releases/rev/32f448c3171b

Also the version of the JS Editor is increased. Can be build and put it into autoupdate.
Comment 12 Petr Pisl 2015-03-10 12:50:48 UTC
Created attachment 152528 [details]
The JavaScript editor with the patch

This is nbm of JavaScript  Editor, with patch that fixes the issue. You can down load it and manually install via Tools->Plugin->Downloaded tab. 

Please, let us know, whether it solves the problem. Thanks.
Comment 13 Vladimir Riha 2015-03-10 12:52:56 UTC
Verified on attached NBM (based on sample from issue 251052)
Comment 14 qrazi 2015-03-10 13:19:30 UTC
After installed the NBM from attachment, could not reproduce issue. Downgraded back down to 0.44.2 -> could not reproduce. Used update to go to 0.44.3 -> could reproduce. Installed from attachment to 0.44.4 again -> could not reproduce.

So for me this definitely fixes the issue, thank you all for the fast response.
Comment 15 Petr Pisl 2015-03-10 13:23:37 UTC
Thanks.
Comment 16 Quality Engineering 2015-03-10 16:12:03 UTC
Integrated into 'releases/release801', will be available in build *201503101352* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/32f448c3171b
User: Petr Pisl <ppisl@netbeans.org>
Log: #250985 - After updating JavaScript2 Editor [0.44.2->0.44.3] background scanning never finish
Comment 17 Jiri Skrivanek 2015-03-11 07:41:34 UTC
*** Bug 251086 has been marked as a duplicate of this bug. ***
Comment 18 Vladimir Riha 2015-03-11 08:16:09 UTC
Verified in patch
Comment 19 Vladimir Riha 2015-03-11 12:18:27 UTC
*** Bug 251025 has been marked as a duplicate of this bug. ***
Comment 20 Petr Pisl 2015-03-11 12:36:49 UTC
*** Bug 251049 has been marked as a duplicate of this bug. ***
Comment 21 Petr Pisl 2015-03-11 14:08:24 UTC
*** Bug 251038 has been marked as a duplicate of this bug. ***
Comment 22 Vladimir Riha 2015-03-12 07:45:41 UTC
*** Bug 251027 has been marked as a duplicate of this bug. ***
Comment 23 Petr Pisl 2015-03-12 10:24:23 UTC
*** Bug 251059 has been marked as a duplicate of this bug. ***
Comment 24 Petr Pisl 2015-03-13 10:11:17 UTC
*** Bug 251059 has been marked as a duplicate of this bug. ***
Comment 25 Petr Pisl 2015-03-23 14:57:58 UTC
*** Bug 251048 has been marked as a duplicate of this bug. ***
Comment 26 Tomas Hurka 2015-03-27 09:56:32 UTC
*** Bug 251174 has been marked as a duplicate of this bug. ***