NetBeans background scanning projects takes too lo

2019-03-17 21:10发布

NetBeans background scanning projects takes too long. Every time when I open netbeans it scanning for ages. I used NetBeans 7.2 and it works perfecly. Now I formatted pc and reinstalled windows, install the same version of NetBeans 7.2, and it works to slow.

14条回答
Juvenile、少年°
2楼-- · 2019-03-17 21:50

This problem is related to one of the project opened in your IDE. As I had been facing the same issue but, after spending two hours on that issue I finally fixed that. Close project one by one or check and close the project where background processing is taking time. After closing the project delete the .nbproject folder and re-import the same project into your IDE.

查看更多
神经病院院长
3楼-- · 2019-03-17 21:51

I was having the same problem with Netbeans 8.1, Windows 10. It was also hanging when I tried to compile and refactor. It would sometimes say 100% done yet continue background scanning for hours. I closed the project in which this was happening, and switched to a simple project and the problem went away. So I examined my code. I had class A extending class B, then class B importing class A. When I changed this, the endless looping in Ant stopped.

查看更多
趁早两清
4楼-- · 2019-03-17 21:53

It should be called foreground scanning of projects. Closing the program and restarting solves it for me sometimes.

查看更多
太酷不给撩
5楼-- · 2019-03-17 21:54

OS: Windows 7 x64.

The following worked for me:

I fully uninstalled Netbeans (ticked all boxes in uninstaller). For those who couldn't you'll need to go to C:\Users\%username%\AppData\Roaming\NetBeans\8.0.2 and delete a file called 'lock'. This is normally removed when the program exits but if you need to force terminate it'll remain there.

After that I uninstalled JDK and JRE then downloaded Java Platform (JDK) 8u40: http://www.oracle.com/technetwork/java/javase/downloads/index.html

And Netbeans 8.0.2: https://netbeans.org/downloads/

Installed JDK (which installs JRE too), after that Netbeans. Once complete I loaded up projects where background scanning got stuck and it seems to have fixed it. Will post updates if it starts happening again.

查看更多
Melony?
6楼-- · 2019-03-17 21:55

On Windows 10 64bit I had the same problem with Netbeans IDE 8.1 I restarted Netbeans as administrator and the problem was solved. Then I closed Netbeans and started normally and the problem was still gone.

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
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: Windows 10 version 10.0 running on amd64; Cp1252; nl_NL (nb)
查看更多
倾城 Initia
7楼-- · 2019-03-17 21:56

I actually made a bug report for this issue. It was fixed and pushed to the update channels yesterday. So for anyone still having this specific bug, let Netbeans check for updates. :)

Bugfix: https://netbeans.org/bugzilla/show_bug.cgi?id=250985

查看更多
登录 后发表回答