che icon indicating copy to clipboard operation
che copied to clipboard

Eclipse Che: Unable to add plug-in automatically in workspace using Devfile for IntelliJ IDEA Community Editor

Open debkantap opened this issue 1 year ago • 6 comments

Summary

I am not able to install plug-ins automatically using devfile for intellij IDEA editor or JetBrains Pycharm editor. Request your help/pointer to achieve this.

Relevant information

For vscode editor able to do this using extensions.json

debkantap avatar Feb 20 '24 11:02 debkantap

Hi, I don't think this is supported, any ideas @azatsarynnyy ?

dkwon17 avatar Feb 20 '24 20:02 dkwon17

I'm not sure If IDEA has a functionality similar to VS Code's extensions.json. If it does - it should work. AFAIK, there's nothing in Devfile itself for installing IDEA plugins.

azatsarynnyy avatar Feb 21 '24 12:02 azatsarynnyy

Maybe .idea/externalDepencies.xml is. An example: https://github.com/JetBrains/intellij-community/blob/master/.idea/externalDependencies.xml

monaka avatar Feb 22 '24 08:02 monaka

Thanks everyone for the response.. I shall test this and post here.

Thanks & Regards Debkanta

debkantap avatar Feb 22 '24 12:02 debkantap

I tried it..but getiing the following error: "Requied Plugins not loaded. Project 'java-spring-petclinic-modified' requires '233.13135.103' or newer build of the IDE, but the current build is '221.5080.210" This is what I did:

  1. I forked the https://github.com/eclipse-che/che-devfile-registry
  2. Copied the https://github.com/eclipse-che/che-devfile-registry/tree/main/devfiles/java-web-spring to another folder "java-web-spring-modified" and changed to meta.yaml to map to my devfile registry "java-spring-petclinic-modified"
  3. Then I modified the "java-spring-petclinic-modified" and added the ".idea" folder with externalDependencies.xml
  4. The content of my externalDependencies.xml is as below:

---- 5. then I build my devfile registry and created the custom image for devfile 6. Using that custom devfile image I deploted eclipse che on k8s 7. then tried to open the devfile by selecting the intellij editor and getting the error as mentioned above.

I am wondering where from the version of intellij is selected by che devworkspace manager and how do I modify that?

Request you help please.

Thanks & regards Debkanta

debkantap avatar Feb 25 '24 15:02 debkantap

@monaka ...any help please.

TR Debkanta

debkantap avatar Feb 27 '24 11:02 debkantap