-
Notifications
You must be signed in to change notification settings - Fork 1.3k
JetBrains server starts without loading user's bashrc #13815
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
Labels
Comments
akosyakov
added a commit
that referenced
this issue
Nov 24, 2022
4 tasks
akosyakov
added a commit
that referenced
this issue
Nov 24, 2022
akosyakov
added a commit
that referenced
this issue
Nov 24, 2022
akosyakov
added a commit
that referenced
this issue
Nov 24, 2022
akosyakov
added a commit
that referenced
this issue
Nov 24, 2022
akosyakov
added a commit
that referenced
this issue
Nov 25, 2022
akosyakov
added a commit
that referenced
this issue
Nov 25, 2022
akosyakov
added a commit
that referenced
this issue
Nov 25, 2022
akosyakov
added a commit
that referenced
this issue
Nov 25, 2022
akosyakov
added a commit
that referenced
this issue
Nov 25, 2022
Repository owner
moved this from In Progress
to Done
in 🚀 IDE Team
Nov 28, 2022
roboquat
pushed a commit
that referenced
this issue
Nov 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Objective
I ran into an issue when using PyCharm with the workspace-full.
The server-ide started without the initialization steps defined in
.bashrc
.Description and how to reproduce
Launch any workspace with PyCharm and workspace-full image.
Create a python script and run it using PyCharm's run configuration.
Get outputs: empty list for the first print and FileNotFoundError for the subprocess.check_output

Navigate to a terminal to print the PATH

Reasons?
Workspace-full install
java
by sdkman.As we can see, it makes
java
available using sdkman's initialization script which is sourced by.bashrc
. (.profile
also source.bashrc
)How Gitpod adds IDE layers to the user's image and how the server-side ide is launched is not well documented.
I guess the JB server started neither sourcing
$HOME/.bashrc
nor$HOME/.profile
. (non-interactive and non-login?)Workarounds
One might add the
java
path into PATH by dockerENV
instruction.However, it might be common that users having some of their initialization in the
.bashrc
. I don't know if starting the JB server-ide in awell-prepared
shell (bash -i
orbash -l
?) is a good idea.The text was updated successfully, but these errors were encountered: