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

Can’t use Intellij as IDE #1047

Open
jguidoux opened this issue May 2, 2024 · 8 comments
Open

Can’t use Intellij as IDE #1047

jguidoux opened this issue May 2, 2024 · 8 comments
Assignees
Labels

Comments

@jguidoux
Copy link

jguidoux commented May 2, 2024

What happened?
I tried to use DevPod for testing with that repository: https://github.com/jguidoux/poc-devcontainers
I used Docker as Provider and VSCode Browes or VSCode Desktop as IDE, and it works pretty well.
Then I tried to use Intellij Idea as IDE and things went wrong.
On my computer (an Ubuntu 23.10), I have Intellij Idea Community, Intellij Idea Ultimate and Jetbrains Gateway.
They have been installed using Jetbrains ToolBox.
image

But I have a message that inform me that Jetbrains Gateway is not installed
image

What did you expect to happen instead?
I expect that DevPod find my installed Jetbrains Gateway and that I can use Intellij Idea as IDE

How can we reproduce the bug? (as minimally and precisely as possible)

My devcontainer.json:

{
	"name": "Java & PostgreSQL",
	"dockerComposeFile": "docker-compose.yml",
	"service": "app",
	"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
	"shutdownAction": "stopCompose",
	"remoteEnv": {
        "GIT_EDITOR": "code --wait"
    },
	"features": {
		"ghcr.io/devcontainers/features/docker-in-docker:2": {}
	}
}

You can use my git repository: https://github.com/jguidoux/poc-devcontainers

Local Environment:

  • DevPod Version: 0.5.6
  • Operating System: Linux, Ubuntu 23.10
  • ARCH of the OS: x86_64

DevPod Provider:

  • Local/remote provider: docker

Anything else we need to know?
I would like to know if I can use my Intellij Idea Ultimate version as IDE

Thanks for your help.

@pascalbreuninger
Copy link
Member

Hey @jguidoux, does the jetbrains gateway application open if you run xdg-open jetbrains-gateway://connect?

@jguidoux
Copy link
Author

jguidoux commented May 3, 2024

Yes, it works.

@jguidoux
Copy link
Author

jguidoux commented May 7, 2024

@pascalbreuninger, do you have any idea why the command xdg-open jetbrains-gateway://connect? is working but Devpod can’t launch jetbrains-gateway ?
Logs on debug don’t give much more information.

@89luca89
Copy link
Member

89luca89 commented May 8, 2024

Hi @jguidoux can you try using devpod CLI instead of the GUI?

@jguidoux
Copy link
Author

jguidoux commented May 8, 2024

Hi @89luca89, I tried to create one workspace using the CLI.
And it works ! :)
If I launched again the workspace created from the CLI with the GUI, I have the same issue.
Maybe it is a user issue.
I noticed that my workspace created from the GUI, the owner was not my user. It was root or another one.
(I checked in that location ~/.devpod/agent/contexts/default/workspaces/.
I deleted all workspaces.
I installed the GUI using the appImage.

So the issue is only for the GUI, maybe installed as an appImage.

@89luca89
Copy link
Member

89luca89 commented May 8, 2024

Thanks a lot @jguidoux it indeed seems like an Appimage problem
I'll investigate, thanks

@linear linear bot assigned 89luca89 May 8, 2024
@jguidoux
Copy link
Author

jguidoux commented May 8, 2024

I tried to recreate a workspace for this repository :  https://github.com/jguidoux/poc-devcontainer-medium
This time, it seems that this workspace is created with the good user:

➜  ~ ll ~/.devpod/agent/contexts/default/workspaces/                       
total 8,0K
drwxr-xr-x 4 j.guidoux utilisa. du domaine 4,0K mai    8 13:52 poc-devcontainer-medium
drwxr-xr-x 4 j.guidoux utilisa. du domaine 4,0K mai    8 12:22 poc-devcontainers

When I launch the workspace using the GUI, I have this result:
image

A ssh issue....

@jguidoux
Copy link
Author

jguidoux commented May 8, 2024

Hi @89luca89
I did some more tests.
Using the CLI, My both git repositories works (https://github.com/jguidoux/poc-devcontainers and https://github.com/jguidoux/poc-devcontainer-medium )
Using the GUI, both failed but for differerent reasons:

  • poc-devcontainers failed because he can’t find any installation of jetbrains-gateway (user issue ?)
  • poc-devcontainer-medium failed because of the ssh issue or for the installation issue. It seems to depends...

If i look in the poc-devcontainers contents : 

➜  ~ ll ~/.devpod/agent/contexts/default/workspaces/poc-devcontainers 
total 8,0K
drwxr-xr-x 10 creative  creative            4,0K mai    9 00:29 content
-rw-------  1 j.guidoux utilisa. du domaine 1,6K mai    9 00:42 workspace.json

I can see that the content/ directory is owned by another user. Why ?
It is not the case when I launched using the GUI.
Creative is a kind of root user. I have not created it. (This is a professional computer).
I am on Linux ubuntu 23.10. Maybe this is due how appImage are installed.

And if I look in the other workspace

➜  ~ ll ~/.devpod/agent/contexts/default/workspaces/poc-devcontainer-medium 
total 8,0K
drwxr-xr-x 5 root      root                4,0K mai    9 00:47 content
-rw------- 1 j.guidoux utilisa. du domaine 1,6K mai    9 00:48 workspace.json

Now, the content/ directory is owned by root....

There is a user issue. Maybe linked with how appImage are installed. I don’t know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants