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

can't install groovy-eclipse and web-developer tools at the same time? #1286

Closed
jeacott1 opened this issue Jul 27, 2021 · 8 comments
Closed
Assignees
Milestone

Comments

@jeacott1
Copy link

I don't seem to be able to install groovy-eclipse and web-developer tools at the same time.
anyone got any hints?

image

@eric-milles
Copy link
Member

Can you try to install each individually? Chances are only one makes reference to logback-classic.

@jeacott1
Copy link
Author

yeah I've tried quite a few variations now, they all ended up like this.
but after clicking around a bunch the ui let me hit the 'next' button and installed things anyway ¯_(ツ)_/¯ .
I seem to have somehow also installed the m2e integration too.
unfortunately I cant see any option to select groovy 2.5 anywhere. previously I'd have had both 2.5 and 3 as options in the groovy settings panel. what am I missing?

image

global config
no options

project config
project_option

@eric-milles
Copy link
Member

Can you start over with https://dist.springsource.org/snapshot/GRECLIPSE/e4.20

@jeacott1
Copy link
Author

@eric-milles thanks for the assist,
I upgraded with https://dist.springsource.org/snapshot/GRECLIPSE/e4.20
no conflicts during the upgrade this time but after the restart eclipse 'forgot' that about 200 loaded modules were maven so I spent an hour wrangling them back to mvn projects. no clue if its related to this update or was just eclipse being eclipse.
still no groovy compiler options except 'I don't care' though :(

image

@eric-milles
Copy link
Member

@jeacott1 I can't tell from your last comment if you started from a fresh install or tried to update the broken one. It is the org.codehaus.groovy.eclipse.compilerResolver that fills in the drop-down of compiler versions. You can check if you have it installed at Help > About Eclipse ...> Installation Details > Plug-ins. If you start your eclipse with the -console command line switch, there will be some output from it like this:

Starting Groovy-Eclipse compiler resolver. Specified compiler level: 2.5
 56 org.codehaus.groovy_2.5.14.202107271059 STARTING

You can also look in the Error Log view to see if there were any issues reported at startup. Probably best to clear it with the red X and restart to see only the errors for a single startup.

@jeacott1
Copy link
Author

@eric-milles - I had upgraded, not started fresh.
so today I started fresh, and with a fresh workspace and yay, I got the groovy 2.5 button back in the global config!
however, the moment I switched to my usual project workspace I was back to only having groovy 3 and no other options.
unfortunately thereafter even if I switch back to the previous workspace the config option is gone :(

now here's the thing I've discovered, and I'm not sure if its a groovy-eclipse bug, or an eclipse bug.
easy to replicate though.
If you 'switch workspaces', ie open a workspace, the file->switch workspace. then groovy-eclipse is always broken.
however, if I shut down eclipse and open it fresh from the desktop groovy-eclipse works as expected!
This happens even with fresh empty workspaces from a brand new eclipse install (I'm using the self contained version of eclipse where everything is unzipped under the eclipse folder, not the one that installs and scatters all the dependencies everywhere - I've had very little success with the that deployment of eclipse)
the only changes I've made to the stock install are to add the groovy-eclipse snapshot site and install. and I added a local jdk8 compiler.

I hope that helps find the cause of this issue, but for now I have a viable workaround.
thank you for your help!

@jeacott1
Copy link
Author

jeacott1 commented Aug 4, 2021

@eric-milles just fyi, I updated the eclipse-groovy tools etc today and was back to not having any options.
after the installation restart I also had an almost empty package explorer.
closing and starting eclipse again recovered my workspace, but alas groovy was back to "I don't care" as the only option available.
a further shutdown and restart has recovered my groovy options. I have no clue why restarts no longer work.
the language server for xml also seems sticky and weird. I've also disabled that now too.
image

@eric-milles
Copy link
Member

@jeacott1 Could you open a new issue for this? Please include any errors seen in the Error Log view.

@eric-milles eric-milles added this to the v4.3.0 milestone Aug 9, 2021
@eric-milles eric-milles self-assigned this Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants