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

Eclipse Che: Unable to add plug-in automatically in workspace using Devfile #22783

Closed
debkantap opened this issue Jan 24, 2024 · 5 comments
Closed
Assignees
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/question Questions that haven't been identified as being feature requests or bugs. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.

Comments

@debkantap
Copy link

Summary

I created a simple devfile and tried to add "redhat.java", plug-in in the dev workspace automatically while creating the workspace, but it is not added automatically. Any clue where I am doing wrong. I have installed eclipse che on vanilla k8s
I have followed the below link:
https://medium.com/eclipse-che-blog/devfile-v2-and-ide-plug-ins-in-eclipse-che-7a560ae724b1
and here is my simple devfile:

---*****----------------

schemaVersion: 2.2.0
metadata:
name: helloworld-example
attributes:
.vscode/extensions.json: |
{
"recommendations": [
"redhat.java"
]
}
components:

  • name: dev-tooling
    container:
    image: quay.io/devfile/universal-developer-image:ubi8-latest
    endpoints:
    - name: http-3000
    targetPort: 3000
    commands:
  • id: install
    exec:
    commandLine: npm install
    component: dev-tooling
    workingDir: ${PROJECT_SOURCE}
    group:
    isDefault: true
    kind: build
  • id: run
    exec:
    commandLine: node app.js
    component: dev-tooling
    workingDir: ${PROJECT_SOURCE}
    group:
    isDefault: true
    kind: run

Relevant information

No response

@debkantap debkantap added the kind/question Questions that haven't been identified as being feature requests or bugs. label Jan 24, 2024
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jan 24, 2024
@debkantap
Copy link
Author

Also followed this link below:
https://devfile.io/docs/2.0.0/adding-plugin-component

@dmytro-ndp dmytro-ndp added area/editor/vscode Issues related to the Code OSS editor of Che team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jan 24, 2024
@ibuziuk
Copy link
Member

ibuziuk commented Feb 2, 2024

@debkantap in order to install extensions automatically just add .vscode/extensions.json to the root of the repository e.g. https://github.com/che-incubator/quarkus-api-example/blob/main/.vscode/extensions.json

@debkantap
Copy link
Author

@ibuziuk ..Thanks for your reply. I did added the extensions.json in my devfile repo, but not lucky. My devfile is very simple and attached. The devfile repo screenshot is also attached. May be doing some mistake, can you please help.
Thanks
Debkanta
devfile-repo

----Devfile---

schemaVersion: 2.2.0
metadata:
name: helloworld-example
attributes:
.vscode/extensions.json: |
{
"recommendations": [
"redhat.java"
]
}
components:


@debkantap
Copy link
Author

@ibuziuk thanks for your help..Now I am able to install plug-in automatically in workspace. Not sure what the issue was, but just added one more plug-ins in the extensions.json and it started working!!

{
"recommendations": [
"github.vscode-pull-request-github",
"redhat.java"
]
}

Now adding plug-ins/extensions for Intellij based editor is same? pls guide.

Thanks & Regards
Debkanta

@debkantap
Copy link
Author

Closing the issue at it is resolved for VS Code Editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/question Questions that haven't been identified as being feature requests or bugs. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.
Projects
None yet
Development

No branches or pull requests

6 participants