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 246615 - Broken core completion after upgrade to 8.0.1
Summary: Broken core completion after upgrade to 8.0.1
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-21 14:43 UTC by Vladimir Riha
Modified: 2014-08-23 22:24 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log with -J-Dorg.netbeans.modules.javascript2.editor.index.level=FINE (58.39 KB, text/plain)
2014-08-21 14:49 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-08-21 14:43:47 UTC
This is the same issue as issue 244049, again the "core" items are missing in following use case:
- install NB 8.0 SE, without patch
- extend to all
- create HTML5 project
- upgrade to 8.0.1 

Cleaning cache dir helps so I believe this is really identical situation to 244049



Product Version: NetBeans IDE 8.0.1 (Build 201408202300)
Java: 1.7.0_67; Java HotSpot(TM) Client VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-08-21 14:49:04 UTC
I used the -J-Dorg.netbeans.modules.javascript2.editor.index.level=FINE option as mentioned in the issue 244049 and the times are again "badly" fast:


INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/vriha/netbeans-8.0/ide/jsstubs/reststubs.zip took: 20 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/vriha/netbeans-8.0/ide/jsstubs/domstubs.zip took: 46 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/vriha/netbeans-8.0/ide/jsstubs/corestubs.zip took: 25 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]

It really looks like the same problem...
Comment 2 Vladimir Riha 2014-08-21 14:49:32 UTC
Created attachment 148817 [details]
IDE log with -J-Dorg.netbeans.modules.javascript2.editor.index.level=FINE
Comment 3 Vladimir Riha 2014-08-21 15:03:44 UTC
Petre, could you please evaluate? In case it is really same situation as in case of 244049, could you please update the timestamps again and transplant it to releases?
Comment 4 Marian Mirilovic 2014-08-21 15:20:52 UTC
This is stopper for 8.0.1 ... please proceed with evaluation/fix quickly. We scheduled final build for this night, so we still can catch the train and release together with GF team.
Comment 5 Vladimir Riha 2014-08-21 19:36:41 UTC
With a big help from Ondra, we tried following:
 - upload 3 modified stubs ZIP archives to hg.netbeans.org/binaries
 - in release801 branch, I changed the the javascript2.editor/external/binaries-list to 

07D37946BA4E047506A1822261D54FDD04562C1C js-corestubs.zip
3BCBB635FA4631EDAB8C5BF8CCAF1AA53E315FF4 js-domstubs.zip
41006E8DA9DD2BB1EDD2F77D59366986F6FAA845 js-reststubs.zip
 
 - increased OpenIDE-Module-Specification-Version in manifest file of javascript2.editor
 - clean and build javascript2.editor
 - generated nbms in javascript2.editor  
 - install the nbms file in the broken IDE

=> I have now code completion from DOM stubs, but NOT from the other 2 zips :/
Comment 6 Vladimir Riha 2014-08-21 21:45:10 UTC
I gave it another try and now the case from description worked (the only difference is that I enabled the mentioned logging before upgrading to 8.0.1) I'll try it few more times tomorrow morning
Comment 7 Petr Pisl 2014-08-21 21:48:33 UTC
This change is not in a repository, should I push the changed zip files to the web-main and releases?
Comment 8 Petr Pisl 2014-08-21 22:25:15 UTC
Hmmm, when I download

http://hg.netbeans.org/binaries/07D37946BA4E047506A1822261D54FDD04562C1C-js-corestubs.zip ,
http://hg.netbeans.org/binaries/3BCBB635FA4631EDAB8C5BF8CCAF1AA53E315FF4-js-domstubs.zip and
http://hg.netbeans.org/binaries/41006E8DA9DD2BB1EDD2F77D59366986F6FAA845-js-reststubs.zip

all these zip files have files that were changed at 25th April 2014, which is not right. 

I'm going create to do new zip files with updated files.
Comment 9 Petr Pisl 2014-08-21 22:44:39 UTC
So I have created new zip files, commit the change in binary-list:
http://hg.netbeans.org/web-main/rev/ba85436c4f8c

and also to the releases:
http://hg.netbeans.org/releases/rev/ad8353384d1d

This issue should be fixed in parsing infrastructure in the future, else we will run in this every release.
Comment 10 Vladimir Riha 2014-08-22 09:48:56 UTC
Thank you, I've tried it couple of times and without problem. 

What I tried
- install NB 8.0 SE, without patch
- extend to all
- create HTML5 project
- upgrade to 8.0.1 
- install nbm from javascript2.editor (with increased spec version)

I'll verify tomorrow with 801 build.
Comment 11 Quality Engineering 2014-08-23 04:54:30 UTC
Integrated into 'main-silver', will be available in build *201408230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ba85436c4f8c
User: Petr Pisl <ppisl@netbeans.org>
Log: #246615 - Broken core completion after upgrade to 8.0.1
Comment 12 Quality Engineering 2014-08-23 06:08:15 UTC
Integrated into 'releases/release801', will be available in build *201408222300* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/ad8353384d1d
User: Petr Pisl <ppisl@netbeans.org>
Log: #246615 - Broken core completion after upgrade to 8.0.1
Comment 13 Vladimir Riha 2014-08-23 22:24:40 UTC
Verified with latest 8.0.1 catalog, thank you


Product Version: NetBeans IDE 8.0.1 (Build 201408222300)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)