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 244264 - Scanning project task stuck at 100%
Summary: Scanning project task stuck at 100%
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: Macintosh (x86) Mac OS X
: P2 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-03 13:49 UTC by fabd
Modified: 2014-05-05 08:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
td dump (18.95 KB, application/octet-stream)
2014-05-03 13:49 UTC, fabd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fabd 2014-05-03 13:49:54 UTC
Created attachment 147086 [details]
td dump

I've an issue caused by npm modules files. The "scanning project" task stucks at 100%. This issues occurs with different version of Netbeans (8.0, 8.0 Patch-1, nightly build).

You can download the sample project here : http://we.tl/IH5u617VdU

cf. https://netbeans.org/bugzilla/show_bug.cgi?id=244246

Fabien
Comment 1 Tomas Mysik 2014-05-05 05:13:21 UTC
Petře, I am sorry but likely not a P3 since the IDE is then quite unusable I guess :/

Thanks.
Comment 2 Petr Pisl 2014-05-05 08:02:22 UTC
I have tried the test project. But I can not reproduce. I have try it with dev build and with updated NB 8.0 via patch 1. 

The scanning on my machine took about 86 seconds and the bulk of the scanning the progress bar stop at 100%. But the scanning finished after 86 seconds on my machine. The problematic files are bug-test.dev/node_modules/grunt/node_modules/iconv-lite/encodings/table/gbk.js and bug-test.dev/node_modules/grunt/node_modules/iconv-lite/encodings/table/big5.js. The scanning of these files tooks almost 70 seconds on my machine. The content looks like they don't have to be scanned, because it's some tables of numbers?. 

IMHO you can use ignore folders in php project to eliminate scanning of these files, probably whole node_modules folder?


I'm marking as works for me, but please reopen, if you can not confirm my detection. 

Also write me the time, how much it takes on your computer. Probably I could provide some algorithm to don't save objects with hundreds of properties into the index during scanning. Thanks.