[넷빈] NetBeans 백그라운드 스캐닝 프로젝트가 너무 오래 걸립니다
Having the same issue with 8.0.2 when a project has JS resources I tracked it down in my case to a problem with the javascript2 editor module which has been updated over the original version shipping with netbeans 8.0.2.
I simply solved it by removing the updated module.
On Linux:
rm ~/.netbeans/8.0.2/modules/org-netbeans-modules-javascript2-editor.jar
However, after letting the netbeans updater download the module a second time, the problem didn't appear again.
In Netbeans 8.1, the location of this file is at: ide/modules/org-netbeans-modules-javascript2-editor.jar.
-------------------After latest update of Netbean 8.0.2 I have the same problem that scaning process did not stop and go forever with CPU usage on 25%.
When I replace javascrip editor files in C:\Program Files\NetBeans 8.0.2\ide\modules
on Windows 7 with old one then scaning project process start work again. You can take those file from this repo.
I have the same problem in netbeans but i found solution by unselect the check from auto scan background in your netbeans IDE go to tools and then Option and select then to miscellaneous and select file tab inside miscellaneous and you will find check as "enable of auto-scanning of the source unselect that one and netbeans will be fast then i hope it will help you in fasting your IDE too
i'm facing the same issue, but it works fine after increase the heap size by adding -J-Xmx2048m
in <NETBEANS_DIR>\etc\netbeans.conf
mine looks like this:
netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......
-------------------Try the following :
1) Go to Window-->Files. This opens the Files Tab.
2) In the Files Tab for each opened project open the nbproject folder and inside it open the project.properties file.
3) Now in this file below the property "excludes" there are file references listed for all your referred Libraries (JARs)
4) There might be some repeated file references with paths that may be old or on someone else's machine(if you are working in a group and transferred projects from someone's machine)
5) Delete those old path references.
Example -
excludes=
file.reference.xyz.jar=../not/correct/path.jar //delete this line
file.reference.xyz.jar-1=../correct/path.jar //remove -1
....
includes=**
6)Also locate the property "javac.classpath" and delete the unnecessary classpath entries corresponding to the deleted references as described above.
Example -
javac.classpath=\
${file.reference.xyz.jar}:\ //keep this line
${file.reference.xyz.jar-1}:\ //delete this line
....
javac.compilerargs=
7) So now the file reference mentioned in the file reference section and the javac.classpath property is same and points to a valid Library (JAR) address on your machine or network.
Example -
excludes=
file.reference.xyz.jar=../correct/path.jar //the correct reference & path
....
includes=**
....
javac.classpath=\
${file.reference.xyz.jar}:\ //the correct classpath entry for reference
....
javac.compilerargs=
....
The reason the above procedure worked (in my case) is because it prevents Netbeans from scanning unnecessary Library paths that may not be present on your machine/network.
-------------------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)
-------------------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.
-------------------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
-------------------https://netbeans.org/downloads/ 에서 NetBeans 8.0.2를 사용해보십시오.
NetBeans 7.2는 너무 오래되어 더 이상 지원을받을 수 없습니다.
-------------------항상 캐시 디렉토리를 삭제하여 Netbeans 관련 문제를 해결합니다.
디렉토리 위치는 About 대화 창에서 볼 수 있습니다. 나를 위해 경로는
C : \ Users \ USER \ AppData \ Local \ NetBeans \ Cache \ YOUR_VERSION
-------------------이 문제는 IDE에서 열린 프로젝트 중 하나와 관련이 있습니다. 같은 문제에 직면했지만 그 문제에 두 시간을 보낸 후 마침내 수정했습니다. 프로젝트를 하나씩 닫거나 백그라운드 처리에 시간이 걸리는 프로젝트를 확인하고 닫습니다. 프로젝트를 닫은 후 .nbproject 폴더를 삭제하고 동일한 프로젝트를 IDE로 다시 가져옵니다.
-------------------프로젝트의 포 그라운드 스캔이라고합니다. 프로그램을 닫고 다시 시작하면 가끔 해결됩니다.
-------------------나는 같은 문제가 있었지만 제 경우에는 Windows 10에 있었고 NetBeans 8.1을 실행했습니다.
랩톱을 포맷하기 전에 C : \ Users \ user_name \ AppData \ Roaming \ NetBeans \ 8.1 및 C : \ Users \ user_name \ AppData \ Local \ NetBeans \ Cache 폴더를 복사하고 백업했습니다 .
그런 다음 아래 단계를 따랐습니다.
- NetBeans를 설치하고 실행하십시오.
- 닫힌 NetBeans
- 이동 C : \ 사용자 \ 사용자 _ 이름 \의 AppData \ 로밍 \ 넷빈즈 \ 8.1 및 C : \ 사용자 \ 사용자 _ 이름 \의 AppData \ 로컬 \ 넷빈즈 \ 캐시 폴더와 백업 폴더로 교체.
- NetBeans 다시 실행
이것이 당신의 문제를 해결하기를 바랍니다 !!
-------------------Ubuntu 18.04 / Netbeans 10.0에서도 동일한 문제가 발생했습니다.
- [FAIL] 캐시 삭제
- [실패] 프로젝트 별 "nbproject"디렉토리 삭제됨
- [FAIL] 문제가되는 프로젝트를 닫았습니다 (진행률 표시 줄에 마우스를 가져 가서 식별)-> NB 다시 시작-> 새 프로젝트 만들기
- [성공] F / S에서 프로젝트 Nuked-> 재 복제-> NB 다시 시작. 또한 이전 디렉토리 이름을 가리키는 다른 캐시가있는 경우 디렉토리 자체의 이름을 변경했습니다.
Netbeans 8.1, Windows 10에서 동일한 문제가 발생했습니다. 컴파일 및 리팩터링을 시도 할 때도 중단되었습니다. 때로는 100 % 완료되었다고 말하지만 몇 시간 동안 백그라운드 검색을 계속합니다. 나는 이것이 일어나고있는 프로젝트를 종료하고 간단한 프로젝트로 전환했고 문제는 사라졌습니다. 그래서 내 코드를 조사했습니다. 클래스 A가 클래스 B를 확장 한 다음 클래스 B가 클래스 A를 가져 왔습니다. 이것을 변경했을 때 Ant의 무한 루프가 중지되었습니다.
출처
https://stackoverflow.com/questions/39949980