-
Notifications
You must be signed in to change notification settings - Fork 45
#654: improved plugin suppport #1085
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
#654: improved plugin suppport #1085
Conversation
Fixes: devonfw#654 ### Implements: * added plugin marker file after successful plugin installation and checks * added edition marker file and checks * added tests for new marker files * added ProcessContext to installPlugin methods * initialized plugins in run of IdeToolCommandlet * added check for successful plugin installation to vscode
adjusted vscode and intellij tests added --force to vscode plugin installation
made sure that if a conflict with editions was detected, all ide matching plugin marker files get re-initialized properly set edition marker test os to windows
added missing null checks
moved testIntellijInstallPluginWithCustomUrl from IntellijTest to new InstallPluginCommandletTest and renamed it to testInstallPlugin
removed ProcessContext from installPlugin added installPlugin implementation without ProcessContext
Pull Request Test Coverage Report for Build 13772747296Details
💛 - Coveralls |
moved force param before install-extension
# Conflicts: # CHANGELOG.adoc
|
I've run into problems with the new |
added ProcessContext to install and postInstall methods of LocalToolCommandlet initialized a new context in IdeToolDummyCommandlet instead of using an empty EnvironmentContext
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jan-vcapgemini thanks for your PR. This story turned out to be underestimated and more complex than initially thought. Great that you found a great solution and made everything work 🥇
Still I have some review comments for rework. I will resolve the 1-2 nice-to-haves but the remaining ones should be addressed. Then we can finally merge this and again bring a great improvement to our users.
cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/ide/IdeaBasedIdeToolCommandlet.java
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/intellij/Intellij.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/plugin/PluginBasedCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/plugin/PluginBasedCommandlet.java
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/plugin/PluginBasedCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/plugin/PluginBasedCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/vscode/Vscode.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/commandlet/InstallPluginCommandletTest.java
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/eclipse/Eclipse.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/tool/intellij/IntellijTest.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/tool/ide/IdeToolCommandletTest.java
Outdated
Show resolved
Hide resolved
…dCommandlet.java Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>
…dCommandlet.java Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>
adjusted changelog
removed create edition marker file logic adjusted tests removed install method using EnvironmentContext replaced all install implementations with ProcessContext change return param of installPlugin to boolean
moved testCheckPluginInstallation from IdeToolCommandletTest to IntellijTest moved testCheckEditionConflictInstallation from IdeToolCommandletTest to IntellijTest Adjusted IntellijTest testIntellijPluginInstallWithCustomRepoUrl to use install instead of run
# Conflicts: # CHANGELOG.adoc
cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/plugin/PluginBasedCommandlet.java
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/plugin/PluginBasedCommandlet.java
Outdated
Show resolved
Hide resolved
adjusted javadocs renamed handleInstall4InactivePlugin to handleInstallForInactivePlugin
Fixes: #654
Implements: