-
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
GroovyEclipseBug: commencingResolution failed: no declaration found for class #1515
Comments
I did some experimenting yesterday and was able to reproduce some of the conditions in your included log file. There are at least 2 issues. First, when moving the mouse over code in a groovy source, a type inference sequence is triggered to determine what the text you are over means and display a hover info box. In this sequence, The second situation I ran into is a bit more complicated and I'm still gathering info. The short version is that mousing over the toolbar or opening context menu in a source and selecting Run As triggers JUnit test detection (see |
This issue ticket asks the maintainers of |
@kovax Could you update to the latest snapshot build and let me know if your situation is improved? |
Thanks for the effort @eric-milles. It feels better, but I am sorry to say it is still too slow. There is another symptom. The 'Run as' menu opens very very slowly after the right click on a groovy test file in Package Explorer. Here are the logs from the groovy console: eclipseError.txt Let me know if I can help. |
I have the next fix that should eliminate the errors when opening the Run As submenu. As noted above, the slowness is part of how the JUnit components check for a test. Since your test classes refer to quite a large type hierarchy (over 250 sources) it takes quite some time to make the determination. You can follow up with JDT UI on this front. |
like `CompilationUnitProblemFinder` and `HierarchyResolver`
I have installed the latest snapshot. The exceptions are gone, but I still see a big delay for example when I just select first time (not double click) a groovy test case in the Package Explorer:
|
I also have checked the performance of code completion by editing the ItemCreationPerformanceTest. It took a long time, about 60 sec to show the suggestions, but the console were updated for about 2 more minutes. |
I'm going to close this issue as resolved -- original indication was exceptions in logs. If you think the performance needs looking into separate from simplifying your test type hierarchy, please open a new issue with specific goals. |
I keep getting this error for some time, and it seriously slows down eclipse. There is no issue running the tests based on this class, in fact I have no compile errors at all. I have attached the logs from the groovy console:
eclipseError.txt
The code is open source, available in the testing module: https://github.com/cristal-ise/cristal-ise
I use freshly installed eclipse 2023-09 and the latest 5.1 plugin with groovy 3, but I saw similar problems with earlier release for some time.
The text was updated successfully, but these errors were encountered: