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

Bring my own IDE: How could i do some task from my ide ? #22812

Closed
batleforc opened this issue Feb 11, 2024 · 8 comments
Closed

Bring my own IDE: How could i do some task from my ide ? #22812

batleforc opened this issue Feb 11, 2024 · 8 comments
Labels
area/editors kind/question Questions that haven't been identified as being feature requests or bugs. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.

Comments

@batleforc
Copy link

Summary

Hi,
For some time, I've been using my eclipse Che instance with my own IDE (IDEA or VsCode, for the case where I have my own computer on me). I had a case where I wanted to stop/restart from local devfile and ended up unable to do so. Is there a way to trigger those restart from my own IDEA (or vscode) installed on my computer ? If so, does creating a Task File to make those automatic seems a good idea ? I also started translating my command into idea's own command so it could be a solution.

Relevant information

No response

@batleforc batleforc added the kind/question Questions that haven't been identified as being feature requests or bugs. label Feb 11, 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 Feb 11, 2024
@RomanNikitenko RomanNikitenko added area/editors 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 Feb 12, 2024
@RomanNikitenko
Copy link
Member

RomanNikitenko commented Feb 12, 2024

I had a case where I wanted to stop/restart from local devfile and ended up unable to do so.

About VS Code
Do you mean these commands:

image

please provide steps to reproduce if they don't work for your case.

Is there a way to trigger those restart from my own IDEA (or vscode) installed on my computer ?

it's possible to run these actions from the dashboard - does it work for your case?

Also you can take a look what Stop Workspace does under the hood here using k8s service.
Restart Workspace first stops a workspace and then start it on the browser side.

About IDEA - maybe @azatsarynnyy could help you...

@batleforc
Copy link
Author

I had a case where I wanted to stop/restart from local devfile and ended up unable to do so.

About VS Code Do you mean these commands:

Yes those one, and yeah it works for me. The full online work perfectly for me (and it saved my life a lot of time 🤣 )

Is there a way to trigger those restart from my own IDEA (or vscode) installed on my computer ?

it's possible to run these actions from the dashboard - does it work for your case?

For the basic one yeah, but the one where I need for example a restart from local devfile (because I need to update my image for example) I didn't find it on the dashboard.

Also you can take a look what Stop Workspace does under the hood here using k8s service. Restart Workspace first stops a workspace and then start it on the browser side.

Thanks for the link, I will search how it works and start to work on a possible integration 👍

Just so you understand, I want to keep the ability to handle my workspace like with the full online vscode with hybrid case (https://github.com/che-incubator/che-idea-dev-server or directly connecting my VS Code with the Kubernetes extension to the pod). And I'm thinking if it's easy to make a tiny CLI to do the basics that I will embed in my future image.

@RomanNikitenko
Copy link
Member

I need for example a restart from local devfile (because I need to update my image for example) I didn't find it on the dashboard.

you are right - restart from local devfile action is absent on the dashboard...

I want to keep the ability to handle my workspace like with the full online vscode with hybrid case (https://github.com/che-incubator/che-idea-dev-server or directly connecting my VS Code with the Kubernetes extension to the pod)

probably you are looking for something like: #22706

@batleforc
Copy link
Author

I need for example a restart from local devfile (because I need to update my image for example) I didn't find it on the dashboard.

you are right - restart from local devfile action is absent on the dashboard...

I want to keep the ability to handle my workspace like with the full online vscode with hybrid case (https://github.com/che-incubator/che-idea-dev-server or directly connecting my VS Code with the Kubernetes extension to the pod)

probably you are looking for something like: #22706

Yep, it could for VsCode, and for IDEA (Jetbrains gateway) I would just reproduce it. To direct connect into my pod, I use the “join from vscode” provided in the Kubernetes extension when you right-click a pod. Does the extension force the usage of ssh ?

@batleforc
Copy link
Author

batleforc commented Apr 3, 2024

Hi, I'm back a little more than a month later.
Will working on my CLI to hasten some process, I ended up encountering a problem with how to keep alive my workspace when I hope in with VS Code and that the default IDE is che-code. How can I get the MACHINE_EXEC_PORT, by default it's 3333 ?

The process that I intend to set up:

  1. Start a session with ./dev-cli workspaces open-vs-code {container name} {Other param that may be needed}
  2. [DONE] The CLI start a new VS Code window that will go in the targeted container and folder (default to /projects/ but can be set)
  3. [Need help] Then the CLI don't give back the term and will call every minute the health check endpoint through an in process reverse proxy.

@RomanNikitenko
Copy link
Member

How can I get the MACHINE_EXEC_PORT, by default it's 3333 ?

yes, it's defined here

@batleforc
Copy link
Author

Thanks, I think I will go with a default value then

@che-bot
Copy link
Contributor

che-bot commented Nov 21, 2024

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 21, 2024
@che-bot che-bot closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editors kind/question Questions that haven't been identified as being feature requests or bugs. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. 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

3 participants