Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netbeans 10/JDK11 #401

Open
qcsoftware513 opened this issue Nov 6, 2018 · 29 comments
Open

Netbeans 10/JDK11 #401

qcsoftware513 opened this issue Nov 6, 2018 · 29 comments

Comments

@qcsoftware513
Copy link

I am having issues trying to use the plugin ON Netbeans 10/JDK 11.

  • "Background scanning of projects" hangs at 96%
  • Trying to run custom task using hotkey F11 locks up IDE
  • CPU usage spikes

I would be happy to give more details, but not sure what would be helpful. Please let me know how I can provide more information.

@qcsoftware513
Copy link
Author

i will add, apparently, Ctrl+S to save also locked up the ide.

@kelemen
Copy link
Owner

kelemen commented Nov 6, 2018

Which version do you tested this with? 10.0-vc3?

@qcsoftware513
Copy link
Author

yes, VC3.

@qcsoftware513
Copy link
Author

Oh - and I am running gradle 4.10.2

@kelemen
Copy link
Owner

kelemen commented Nov 6, 2018

I'm unable to reproduce the issue. Can you provide a thread dump, so that I can check where it is hanging?

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 6, 2018 via email

@kelemen
Copy link
Owner

kelemen commented Nov 6, 2018

This should work: http://wiki.netbeans.org/GenerateThreadDump

@kelemen
Copy link
Owner

kelemen commented Nov 6, 2018

Or if NB UI is not frozen, you might click the profile IDE button and save from there (that is actually better).

@kelemen
Copy link
Owner

kelemen commented Nov 6, 2018

Or if somehow none of those work, you could use jstack given that NB is just a Java project.

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 7, 2018 via email

@kelemen
Copy link
Owner

kelemen commented Nov 7, 2018

I had an out of memory too when starting NB for some reason but I immediately added -Xmx2048m to ets/netbeans.conf and it worked fine after that.

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 7, 2018 via email

@kelemen
Copy link
Owner

kelemen commented Nov 7, 2018

Yes, you should add -J-Xmx2048m somewhere (or whatever value, I just happened to add this).

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 8, 2018 via email

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 12, 2018 via email

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 12, 2018 via email

@kelemen
Copy link
Owner

kelemen commented Nov 12, 2018

I don't think this is the fault of this plugin as the stack trace indicates an infinite recursion in nb-javac. So, the problem appears because of the presence of a certain project on which it "crashes".

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 12, 2018 via email

@kelemen
Copy link
Owner

kelemen commented Nov 12, 2018

Yes, I think this should be reported to the NB team but they will also need a sample project on which NB crashes.

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 12, 2018 via email

@kelemen
Copy link
Owner

kelemen commented Nov 12, 2018

This error means, that you have tried loading a project with older Gradle version which does not support Java 11. It has nothing to do with NB (maybe this plugin but definitely not a general NB issue).

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 12, 2018 via email

@qcsoftware513
Copy link
Author

qcsoftware513 commented Nov 12, 2018 via email

@qcsoftware513
Copy link
Author

Still no progress in being able to reproduce in a project outside of the company code. I think it is one/some of the dependencies but not sure.

@qcsoftware513
Copy link
Author

For what it's worth, the problem seems to get much worse when I add the following dependency:

'org.apache.cxf:apache-cxf:3.1.0'

I hope this helps. I still can't seem to reproduce unless i have all of our internal code.

@Angular-Angel
Copy link

I have this same problem in 12.6. Seems to be related to mixed groovy/java code in a gradle project.

@Angular-Angel
Copy link

Or maybe just groovy code at all. It has the same problem even when I move the java code to a separate directory.

@kelemen
Copy link
Owner

kelemen commented Jan 19, 2022

Are you sure you are using this plugin? NetBeans has its own built-in Gradle plugin for quite a while now.

@Angular-Angel
Copy link

Oh, you're right, I'm not! My bad, I thought this was just the netbeans repo for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants