You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As IDEasy user, I want to be able to install, open and use latest IntelliJ so that I can develop.
Actual behavior
Start: Install plugin plantuml
java.io.IOException: Failed to fetch file headers: HTTP 404
at com.devonfw.tools.ide.tool.ide.IdeaBasedIdeToolCommandlet.getFileExtensionFromUrl(IdeaBasedIdeToolCommandlet.java:141)
at com.devonfw.tools.ide.tool.ide.IdeaBasedIdeToolCommandlet.downloadPlugin(IdeaBasedIdeToolCommandlet.java:114)
at com.devonfw.tools.ide.tool.ide.IdeaBasedIdeToolCommandlet.installPlugin(IdeaBasedIdeToolCommandlet.java:59)
at com.devonfw.tools.ide.tool.plugin.PluginBasedCommandlet.installPlugins(PluginBasedCommandlet.java:118)
at com.devonfw.tools.ide.tool.plugin.PluginBasedCommandlet.postInstall(PluginBasedCommandlet.java:104)
at com.devonfw.tools.ide.tool.LocalToolCommandlet.install(LocalToolCommandlet.java:104)
at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:166)
at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:152)
at com.devonfw.tools.ide.tool.ide.IdeToolCommandlet.runTool(IdeToolCommandlet.java:55)
at com.devonfw.tools.ide.tool.ToolCommandlet.run(ToolCommandlet.java:130)
at com.devonfw.tools.ide.tool.ide.IdeToolCommandlet.run(IdeToolCommandlet.java:49)
at com.devonfw.tools.ide.context.AbstractIdeContext.applyAndRun(AbstractIdeContext.java:862)
at com.devonfw.tools.ide.context.AbstractIdeContext.run(AbstractIdeContext.java:771)
at com.devonfw.tools.ide.cli.Ideasy.runOrThrow(Ideasy.java:89)
at com.devonfw.tools.ide.cli.Ideasy.run(Ideasy.java:52)
at com.devonfw.tools.ide.cli.Ideasy.main(Ideasy.java:29)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Step 'ide (intellij)' failed: java.lang.IllegalStateException: Failed to process installation of plugin: PlantUML+integration
Step 'Install intellij (2024.2.4)' failed: java.lang.IllegalStateException: Failed to process installation of plugin: PlantUML+integration
Step 'Install plugin plantuml' failed: java.io.IOException: Failed to fetch file headers: HTTP 404
3 step(s) failed out of 10 steps.
An unexpected error occurred!
We are sorry for the inconvenience.
Please check the error below, resolve it and try again.
If the error is not on your end (network connectivity, lack of permissions, etc.) please file a bug:
https://github.com/devonfw/IDEasy/issues/new?assignees=&labels=bug&projects=&template=bug.md&title=IllegalStateException%3A+Failed+to+process+installation+of+plugin%3A+PlantUML%2Bintegration
java.lang.IllegalStateException: Failed to process installation of plugin: PlantUML+integration
at com.devonfw.tools.ide.tool.ide.IdeaBasedIdeToolCommandlet.installPlugin(IdeaBasedIdeToolCommandlet.java:65)
at com.devonfw.tools.ide.tool.plugin.PluginBasedCommandlet.installPlugins(PluginBasedCommandlet.java:118)
at com.devonfw.tools.ide.tool.plugin.PluginBasedCommandlet.postInstall(PluginBasedCommandlet.java:104)
at com.devonfw.tools.ide.tool.LocalToolCommandlet.install(LocalToolCommandlet.java:104)
at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:166)
at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:152)
at com.devonfw.tools.ide.tool.ide.IdeToolCommandlet.runTool(IdeToolCommandlet.java:55)
at com.devonfw.tools.ide.tool.ToolCommandlet.run(ToolCommandlet.java:130)
at com.devonfw.tools.ide.tool.ide.IdeToolCommandlet.run(IdeToolCommandlet.java:49)
at com.devonfw.tools.ide.context.AbstractIdeContext.applyAndRun(AbstractIdeContext.java:862)
at com.devonfw.tools.ide.context.AbstractIdeContext.run(AbstractIdeContext.java:771)
at com.devonfw.tools.ide.cli.Ideasy.runOrThrow(Ideasy.java:89)
at com.devonfw.tools.ide.cli.Ideasy.run(Ideasy.java:52)
at com.devonfw.tools.ide.cli.Ideasy.main(Ideasy.java:29)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.io.IOException: Failed to fetch file headers: HTTP 404
at com.devonfw.tools.ide.tool.ide.IdeaBasedIdeToolCommandlet.getFileExtensionFromUrl(IdeaBasedIdeToolCommandlet.java:141)
at com.devonfw.tools.ide.tool.ide.IdeaBasedIdeToolCommandlet.downloadPlugin(IdeaBasedIdeToolCommandlet.java:114)
at com.devonfw.tools.ide.tool.ide.IdeaBasedIdeToolCommandlet.installPlugin(IdeaBasedIdeToolCommandlet.java:59)
... 14 more
We actually have multiple issues here:
the actual bug with plugin id containing space vs. + (see below)
exception message needs improvement and should contain the URL that failed
check why the logging of the plugin URL (see below on success "Trying to download ..." is not logged before this error occurs what would have helped to see what incorrect URL is created and to double check in the browser if I also get 404 there.
we throw IOException from our own code (what we should not do but instead throw an unchecked exception):
Expected behavior
As IDEasy user, I want to be able to install, open and use latest IntelliJ so that I can develop.
Actual behavior
We actually have multiple issues here:
+
(see below)IOException
from our own code (what we should not do but instead throw an unchecked exception):IDEasy/cli/src/main/java/com/devonfw/tools/ide/tool/ide/IdeaBasedIdeToolCommandlet.java
Lines 133 to 153 in 15910e5
HttpURLConnection
including an ugly downcast to do aHEAD
request. The proper way to do such things can be found here:IDEasy/cli/src/main/java/com/devonfw/tools/ide/url/updater/AbstractUrlUpdater.java
Lines 485 to 499 in 15910e5
Steps to reproduce (bug) / Use Case of feature request (enhancement)
settings/intellij/plugins/plantuml.properties
withRelated/Dependent Issues
directly related to #550
Comments/Hints:
When replacing the
), it works.
+
sign with a space (However, with space it does not work with
devonfw-ide
.Hence, I consider it as a bug in IDEasy that the legacy
+
sign is not supported anymore.Affected version:
The text was updated successfully, but these errors were encountered: