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 256865 - Yii project background scanning of project keep hanging
Summary: Yii project background scanning of project keep hanging
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-30 09:29 UTC by tuen.lee
Modified: 2016-02-04 12:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiling file where the issue exists (1.61 MB, application/octet-stream)
2015-11-30 09:29 UTC, tuen.lee
Details
new profiler (1.57 MB, application/octet-stream)
2015-11-30 10:44 UTC, tuen.lee
Details
IDE Log (37.76 KB, text/x-log)
2015-11-30 10:44 UTC, tuen.lee
Details
File that make netbeans do looping (954 bytes, text/html)
2015-11-30 16:07 UTC, tuen.lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tuen.lee 2015-11-30 09:29:48 UTC
Created attachment 157554 [details]
Profiling file where the issue exists

Once I open the project, my cpu raise very high. On the status of Netbeans IDE i saw "Background scanning of projects..." and stuck on the project that has running Yii

from ~/.netbeans/var/log:

INFO [org.netbeans.modules.git.status]: GitInterceptor.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
Comment 1 Tomas Mysik 2015-11-30 10:31:10 UTC
Please, try latest stable version of NetBeans (currently 8.1) and always attach your IDE log [1].

From snapshot: IDE is scanning, all time takes JS scanning:

org.netbeans.modules.javascript2.editor.index.JsIndexer.index()

Reassigning, please evaluate.

Simply reopen this issue, thanks.
[1] http://wiki.netbeans.org/FaqLogMessagesFile
Comment 2 tuen.lee 2015-11-30 10:44:23 UTC
Created attachment 157556 [details]
new profiler
Comment 3 tuen.lee 2015-11-30 10:44:49 UTC
Created attachment 157557 [details]
IDE Log
Comment 4 tuen.lee 2015-11-30 10:45:22 UTC
I'm already using 8.1:

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 4.1.6-040106-generic running on amd64; UTF-8; en_US (nb)
Comment 5 tuen.lee 2015-11-30 16:07:54 UTC
Created attachment 157562 [details]
File that make netbeans do looping

problem came from a file.

if you put the file in your project folder. Netbeans will still hanging on background scanning

some parsing issue with netbeans?
Comment 6 tuen.lee 2015-11-30 16:14:29 UTC
Also a new project with only that file make netbeans do looping in "Background Scanning of project"
Comment 7 Petr Pisl 2015-12-01 10:14:57 UTC
Thanks for the reproducible case. I'm going to look at this. According to your symptoms it looks like a bug with higher priority.
Comment 8 Petr Pisl 2015-12-29 11:15:16 UTC
Thanks a lot for the file. I have fixed it in trunk, should be available in the next build: http://hg.netbeans.org/web-main/rev/7d3ffa67b235 

Also marking as a patch candidate.
Comment 9 Petr Pisl 2015-12-29 11:15:43 UTC
Should be a part of the next daily build.
Comment 10 Quality Engineering 2015-12-30 02:16:10 UTC
Integrated into 'main-silver', will be available in build *201512300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7d3ffa67b235
User: Petr Pisl <ppisl@netbeans.org>
Log: #256865 - Yii project background scanning of project keep hanging
Comment 11 Jiri Prox 2016-01-18 16:28:50 UTC
verified in trunk
Comment 12 Petr Pisl 2016-01-22 23:26:30 UTC
Transplanted to the releases / release81:

http://hg.netbeans.org/releases/rev/cd671087ae1b