loft-sh / devpod

Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker.
https://devpod.sh
Mozilla Public License 2.0
8.75k stars 328 forks source link

How to specify version for IDE like CLion? #1003

Closed RobinQu closed 5 months ago

RobinQu commented 5 months ago

When creating workspace using Clion, I noticed devpod is using CLion-2023.2.2.tar.gz, which is old version. So how to specify the version to use in devpod. Or is it managed by you, and cannot be modfiy easily?

shanman190 commented 5 months ago

Hey @RobinQu, I just submitted a PR that was merged earlier to get this upgraded to 2024.1. I'm also planning to go ahead and submit another PR to actually swap over to the dynamic download links for the JetBrains products as well.

See https://github.com/loft-sh/devpod/pull/1002 for more details.

RobinQu commented 5 months ago

Hey @RobinQu, I just submitted a PR that was merged earlier to get this upgraded to 2024.1. I'm also planning to go ahead and submit another PR to actually swap over to the dynamic download links for the JetBrains products as well.

See #1002 for more details.

What a coincidence!

pascalbreuninger commented 5 months ago

Just to add to this: @shanman190 create this PR to always fall back to the latest version. Alternatively you can use devpod ide set-options intellij -o VERSION=2024.1 to set it manually

RobinQu commented 5 months ago

Just to add to this: @shanman190 create this PR to always fall back to the latest version. Alternatively you can use devpod ide set-options intellij -o VERSION=2024.1 to set it manually

Following command is executed in my pod, and it still downloads 2023.2.

devpod ide set-options clion -o VERSION=2024.1 
pascalbreuninger commented 5 months ago

@RobinQu can you confirm it's updated with devpod ide options clion? I just tried this and the logs included 15:00:59 info Download CLion from https://download.jetbrains.com/cpp/CLion-2024.1-aarch64.tar.gz. Maybe you'll have to reset the workspace?

RobinQu commented 5 months ago

@RobinQu can you confirm it's updated with devpod ide options clion? I just tried this and the logs included 15:00:59 info Download CLion from https://download.jetbrains.com/cpp/CLion-2024.1-aarch64.tar.gz. Maybe you'll have to reset the workspace?

Tried again with rebuilt worksapce. Same result in devpod 0.5.5.

image

pascalbreuninger commented 5 months ago

and with a completely new workspace?

RobinQu commented 5 months ago

and with a completely new workspace?

To reproduce:

  1. Create a new workspace with no IDE selected in a K8S provider.
image
  1. Wait for POD ready.

pod.txt

  1. Set IDE version in POD in interactive shell via k9s.

image

  1. In devpod's dashboard, hower on the button with three dots of created workspace, and choose open with Clion in the popup menu.

  2. devpod is busy preparing IDE. And it shows it's still downloading old version of Clion.

image
shanman190 commented 5 months ago

So you need to set the version on the local machine, not inside the k8s pod itself.

So I'd tear down the workspace, set the version locally, then spin up your workspace and you should now have CLio. 2024.1.

RobinQu commented 5 months ago

devpod ide set-options clion -o VERSION=2024.1

oh. silly of me... I never thought to give a try in the local temrinal.