-
Notifications
You must be signed in to change notification settings - Fork 193
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
Eclipse 4.7 hangs on every modification of code in groovy editor #327
Comments
The very last exception occurs when trying to initialize the superclass(es) of your script or types in your script. Do you use a base script type? Could you share at least the script skeletal structure (imports, types, methods, fields/variables)?
Somewhere there is a method binding that has a null return type (JDTClassNode.methodBindingToMethodNode(JDTClassNode.java:348)). Basically with every activation of a source tab or edit, this will get hit and cause trouble. I need some help to try and set up a recreation scenario so I can put in the proper mitigation.
|
Due to license reasons I can't provide the script here. But I guess the logs reflect not the amount of occurrences that appear in UI. The UI freezes quite frequent, but logs appear not really often. So my suggestion is that the issue is not logged at all. Is there a debug log? |
It's not the logging that is causing the slowness in the UI. It is type lookup during reconcile. When Eclipse is unable to initialize a class into its model, it can slow down the editor quite a bit. Without more information, all I can do is try to address the issues noted in the log entries you included. Could you update to the latest snapshot build? I added some context information to the |
Have you looked at whether this is related to content assist? I experienced performance issues with the Code Recommenders plugins in previous versions. |
@eric-milles I did the update to latest snapshot. In the log file I can't figure out any additional statements.
But the freezes still occurred after disabling content assist: |
In 4.6 I had removed the Code Recommenders plugins from my install, I would take a stab at unchecking them here see if it fixes the issue for you. I should also say, I'm not involved in the groovy-eclipse project I was just looking at the issues list. |
I would like to supply more detailed logs. How could I deliver logs that may give more information about what is going on during code changes? Thank you a lot! |
I'm available for chat on the community slack. Not sure if files can be attached there in Direct Messages. But we could at least discuss the issue.
https://groovy-community.slack.com/ @eric-milles
|
I do not know how to send you messages besides this thread, sorry... It seems as I have to be invited for team login. Do you have other ways of getting in contact? Skype? |
You may send me an email if you are comfortable with that. My work email can be found on the CI build server page: https://build.spring.io/browse/GRECLIPSE
|
Per our discussion, it looks like the source of the UI slowness is the reconcile process. Eclipse tries to synch up the editor contents with the Groovy/Java model. And it is taking in excess of 20 seconds. Also, I did remember where the shortcut for adding a type inferencing suggestion is. Put your editor selection over an underlined variable in your script and press Ctrl-1 to open the Quick Assist menu. "Add inferencing suggestion" should be a choice in the menu. |
I am writing a script with project references to our companys business objects. When doing code changes or switching tab, Eclipse is freezing for many seconds.
This behavior applies also to MyEclipse 2016 CI.
I don't know if this errors from log have anything to do with this issue:
The text was updated successfully, but these errors were encountered: