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

installation of Eclipse plugin AnyEditTools hangs forever #674

Closed
hohwille opened this issue Jan 6, 2022 · 4 comments · Fixed by #675
Closed

installation of Eclipse plugin AnyEditTools hangs forever #674

hohwille opened this issue Jan 6, 2022 · 4 comments · Fixed by #675
Labels
bug Something isn't working invalid This doesn't seem right
Milestone

Comments

@hohwille
Copy link
Member

hohwille commented Jan 6, 2022

Expected behavior

I want to be able to run eclipse with all configured plugins without any errors.

Actual behavior

Setup hangs forever after this message:

Installing eclipse plugin AnyEditTools from https://raw.githubusercontent.com/iloveeclipse/plugins/latest/

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. install devonfw-ide
  2. run devon eclipse

Related/Dependent Issues

Comments/Hints:

The current update site is ttps://raw.githubusercontent.com/iloveeclipse/plugins/latest/ and gives me a 400 (Invalid request)

Affected version:

@hohwille hohwille added the bug Something isn't working label Jan 6, 2022
hohwille added a commit to devonfw/ide-settings that referenced this issue Jan 6, 2022
@hohwille
Copy link
Member Author

hohwille commented Jan 6, 2022

As a "quick-fix" I simply disabled the plugin.
However, eclipse with its plugin is an unmaintainable mess.
I do not have a clue how we will ever be able to get this working flawlessly for all version combinations of Eclipse and Plugin-Update-Site-URLs from arbitrary external vendors:

  • there is no reliable central repository for eclipse plugins like e.g. for maven artifacts. If some developer provides his plugin via github or some whatever generic service it might be available and work today and stop working tomorrow.
  • there is IMHO no way how to specify a specific version of a plugin for an installation
  • there is no general concept or convention how to deal with plugin update site URLs and different versions of eclipse itself. Some plugins may maintain different update site URLs for different Eclipse versions. If two independent plugin vendors actually do provide this, they surely do not use the same conventions and still there will be other plugin providers that do not do this. We could try to extend our ide-mirrors concept and also try to configure all the UpdateSiteURLs of each and every Eclipse plugin and make that potentially even configurable per Eclipse version. Sounds like quite some work but in the end still we can not prevent that things break every week.

@hohwille
Copy link
Member Author

hohwille commented Jan 6, 2022

Actually eclipse plugin installation was hanging due to a popup (haning in the background) saying:

Version 1.8.0_242 of the JVM is not suitable for this product.

So we would need a combination of:

  • plugin
  • eclipse-version
  • java-version
    to decide what to do.

@hohwille
Copy link
Member Author

hohwille commented Jan 6, 2022

My test installation of devonfw-ide had still Java8 installed.
I deleted settings folder and rerun setup.
However, this did not update java.
It seems I did a mistake with this commit: 1b535ea
before:

DEVON_IDE_TOOLS=(java mvn node npm)

after:

Problem is that transitive "setup" from mvn to java only does a silent update that does nothing if the tools is already installed.
Should we revert this change?
Or should we change the behaviour of the silent update always checks the version and updates on version mismatch?

The latter sounds nice but might imply that everytime you "run" a particular tool via devon you will "wait" some delay for all such checks (e.g. for every devon mvn clean we would check the version of maven and java and compare with the configured version - additionally we have some tools having latest configured as version what can not be checked without downloading updates). Maybe it is worth testing if this is fast enough and we can solve some troubles this way.

hohwille added a commit to devonfw/ide-settings that referenced this issue Jan 6, 2022
@hohwille
Copy link
Member Author

hohwille commented Jan 6, 2022

Anyhow the actual test now was successful and Eclipse with its plugins was installed without errors:

devon eclipse setup
Version 2021-12 of eclipse is already installed.
Installing eclipse plugin AnyEditTools from https://raw.githubusercontent.com/iloveeclipse/plugins/latest/
org.eclipse.m2e.logback.configuration: Activated before the state location was initialized. Retry after the state location is initialized.
Installing AnyEditTools.feature.group 2.7.2.202006062100.
Operation completed in 3576 ms.
Installing eclipse plugin net.sf.eclipsecs from https://checkstyle.org/eclipse-cs-update-site
org.eclipse.m2e.logback.configuration: Activated before the state location was initialized. Retry after the state location is initialized.
Installing net.sf.eclipsecs.feature.group 9.0.0.202201060017.
Operation completed in 12663 ms.
Installing eclipse plugin com.devonfw.cobigen.eclipse.feature from https://devonfw.com/cobigen/updatesite/stable/
org.eclipse.m2e.logback.configuration: Activated before the state location was initialized. Retry after the state location is initialized.
Installing com.devonfw.cobigen.eclipse.feature.feature.group 2021.12.3.
Installing com.devonfw.cobigen.tempeng-freemarker 2021.12.3.
Installing com.devonfw.cobigen.htmlplugin 2021.12.3.
Installing com.devonfw.cobigen.javaplugin 2021.12.3.
Installing com.devonfw.cobigen.jsonplugin 2021.12.3.
Installing com.devonfw.cobigen.openapiplugin 2021.12.3.
Installing com.devonfw.cobigen.propertyplugin 2021.12.3.
Installing com.devonfw.cobigen.textmerger 2021.12.3.
Installing com.devonfw.cobigen.tsplugin 2021.12.3.
Installing com.devonfw.cobigen.tempeng-velocity 2021.12.3.
Installing com.devonfw.cobigen.xmlplugin 2021.12.3.
Operation completed in 35344 ms.
Installing eclipse plugin org.jboss.ide.eclipse.freemarker.feature from https://download.jboss.org/jbosstools/neon/stable/updates/
org.eclipse.m2e.logback.configuration: Activated before the state location was initialized. Retry after the state location is initialized.
Installing org.jboss.ide.eclipse.freemarker.feature.feature.group 1.5.300.v20161214-1103.
Operation completed in 42343 ms.
Installing eclipse plugin de.bastiankrol.startexplorer.feature from https://basti1302.github.io/startexplorer/update/
org.eclipse.m2e.logback.configuration: Activated before the state location was initialized. Retry after the state location is initialized.
Installing de.bastiankrol.startexplorer.feature.feature.group 1.6.1.
Operation completed in 3512 ms.
/Users/hohwille/projects/test2/scripts/command/eclipse: line 79: isQuiet: command not found
name=Eclipse Platform
id=org.eclipse.platform
version=4.21.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant