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 256617 - Background scanning of projects never ends
Summary: Background scanning of projects never ends
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-16 09:52 UTC by emrahtoy
Modified: 2016-03-07 06:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (74.56 KB, text/plain)
2015-11-16 09:53 UTC, emrahtoy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emrahtoy 2015-11-16 09:52:56 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Linux version 3.19.0-33-generic running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

STEPS:
  * Create aproject

ACTUAL:
  Scanning never ends

EXPECTED:
  Scanning should be end and i would be able to find classes by clicking with ctr
Comment 1 emrahtoy 2015-11-16 09:53:01 UTC
Created attachment 157352 [details]
IDE log
Comment 2 Geertjan Wielenga 2015-11-17 17:49:54 UTC
What happens when you remove user directory and cache directory and then restart? http://wiki.netbeans.org/FaqWhatIsUserdir
Comment 3 emrahtoy 2015-11-17 21:18:59 UTC
Nothing changes.

It counts to %100 and never ends..
Comment 4 stripyshirtguy 2016-02-25 17:10:43 UTC
This is still a bug with the latest NetBeans, Java JRE, OS X operating system. I'm using PHP / Symfony2 project/s, excluding some of the app/ folder and restarting sometimes helps. But NetBeans Symfony2 support should already be ignoring the app/cache dir.

It's been in various other bugs, and never really fixed. What do you guys want/need to take next steps to resolve this? I can't imagine it would be difficult to replicate.. I imagine Netbeans developers using Netbeans to write Netbeans would encounter this? or maybe it's limited to PHP / Symfony 2

Either way, there should be something catching it scanning too long, and also, when you try to cancel it, it causes all sorts problems.
Comment 5 Tomas Zezula 2016-02-26 10:04:07 UTC
Seems as PHP Specific problem.
In the log there are exceptions from smarty framework and PHP parser errors.
Please attach the stack trace or nps self profiling file, here are steps how to do it:
1) http://wiki.netbeans.org/GenerateThreadDump
2) http://wiki.netbeans.org/FitnessViaPartnership

Thanks!
Comment 6 Tomas Mysik 2016-03-07 06:38:01 UTC
Taking over.

(In reply to Tomas Zezula from comment #5)
> 1) http://wiki.netbeans.org/GenerateThreadDump
> 2) http://wiki.netbeans.org/FitnessViaPartnership

Please, create a profiler snapshot once this problem appears again (take snapshot for about 30 seconds, create it once IDE is scanning "forever") and attach it. Or, if you have a sample project we can use to reproduce this problem, attach it.

Then reopen this issue, thanks.