-
Notifications
You must be signed in to change notification settings - Fork 26
Can't specify git bash as terminal when running rstudio through rig #268
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 o 8000 f service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried putting git bash on the PATH? |
Yes, I added it to the windows machine-level path in Powershell. when I check the path in cmd, it shows up. |
rig does not use powershell to start RStudio, so try setting the PATH in your user's config, or the global config. |
I'm not sure I understand you. The exe for Git Bash is already in my bash PATH. The exe for Git Bash is also in the PATH for cmd, which Rig does use (cmd and powershell share windows environment variables). But RStudio still can't "see" Git Bash as an option when I launch it through |
I meant like this: https://www.computerhope.com/issues/ch000549.htm#windows11 (You'll have to restart the shell after this, probably.) What does R (in Rstudio started with rig) give you for
? |
Yep when I check the GUI it is set in there. Setting the environment variable in powershell does the same thing, but I double checked just in case. The path to git bash is in both my local and system environment variables.
It returns If I check It's strange to me that RStudio is able to find the git bash executable when I start it with Rig and the option just isn't there in the dropdown menu I'm looking at. (But still, if I start RStudio without Rig, it is an option.) |
When I launch RStudio manually, I can set "Git Bash" as the option for the terminal. I'm talking about the option under "Global Options" -> "Terminal" in left-hand menu -> "New terminals open with" dropdown menu.
When I launch RStudio via
rig rstudio
, the option for Git Bash isn't present in the list of options for opening a terminal.If I launch RStudio via
rig rstudio
and I set the option for the terminal to "Custom" with the path to my global git bash path, RStudio will open a terminal in another window -- I'd like to have it embedded as usual if possible.I see from the console output when running
rig rstudio
that it runscmd.exe /c start /b rstudio
. Is the problem thatGit Bash
isn't in the path when this happens? I'm used to bash and not that familiar withcmd
so I don't know if that's the same problem, or how to fix it. I tried searching through the other issues in this repo and online but didn't find anyone else with the same issue. However, if I check in Powershell ([Environment]::GetEnvironmentVariable("PATH")
), the path to my git bash exe is in there, so I'm not sure why RStudio can't find Git Bash when I open it through Rig.I'm fairly sure that the Git installation is not the problem -- I have Git/Git Bash installed in the usual
Program Files
location, and I can use git through any of the terminals that open in RStudio.I'm using rig 0.7.0, R 4.4.2 (installed through rig), and RStudio 2024.12.0 Build 467 (installed manually), if any of that is relevant.
Thanks in advance!!
The text was updated successfully, but these errors were encountered: