You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
terminal path ordering not consistent on mac #10997
RStudio Edition : Desktop
RStudio Version : "Spotted Wakerobin" Daily (1b34f229, 2022-04-15) for macOS
OS Version : Mac
R Version : 4.1
Steps to reproduce the problem
Open Rstudio via finder or other non-terminal launcher. Open a terminal and check paths
Describe the problem in detail
There is a discrepancy in the path ordering in the RStudio terminal compared to using the terminal normally. Of particular interest is making sure there is consistency in /homebrew/bin
In rstudio terminal we see:
regular terminal for default shell (fish) and in bash to be consistent with what rstudio launches
confirming bash is default shell in rstudio terminal
devins-mbp-2:environments.rstudio.com devin$ PATH= $SHELL -l -c 'printf "%s" "$PATH"'
/opt/homebrew/bin:/opt/homebrew/sbin:/Users/devin/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:.devins-mbp-2:environments.rstudio.com
devin$ echo $PATH
/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/devin/Applications/quarto/bin:/Applications/RStudio.app/Contents/MacOS
devins-mbp-2:environments.rstudio.com devin$ cat ~/.config/fish/config.fish
source ~/.config/fish/env.fish
if status is-interactive
# Commands to run in interactive sessions can go here
end
eval (/opt/homebrew/bin/brew shellenv)
starship init fish | source
fish_add_path ~/go/bin
In checking in ~/.local/share/rstudio/log I didn't see anything relevant.
RStudio 2022.06.0-daily+324 "Spotted Wakerobin" Daily (64ee43493bae9754916b9f18f91fe79a6ba9b8a9, 2022-04-25) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 12_1_0) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36
This adds a dev version of quarto to my $PATH and is then accessible by a terminal, integrated into RStudio or elsewhere.
However, RStudio is not "picking up" the $PATH addition as it is using an older version of Quarto with RStudio > Render, and the following commands point at a different executable. Calling system("echo $PATH") also returns a $PATH missing the export from above.
Sys.which("quarto")
#> quarto
#> "/usr/local/bin/quarto"
system("which quarto")
#> /usr/local/bin/quarto
Activity
kevinushey commentedon Apr 15, 2022
What is the output of
PATH= $SHELL -l -c 'printf "%s" "$PATH"', in your shell?kevinushey commentedon Apr 15, 2022
Also, do you see any relevant diagnostic entries in
~/.local/share/rstudio/log?dpastoor commentedon Apr 25, 2022
sorry for the delay:
In checking in
~/.local/share/rstudio/logI didn't see anything relevant.dpastoor commentedon Apr 25, 2022
ah - I had downgraded to the preview release to revert some daily bugs, I need to rerun the above with the daily again, hold tight
dpastoor commentedon Apr 25, 2022
kk
9 remaining items
jthomasmock commentedon May 27, 2022
Per @kevinushey - adding some notes here.
On Mac:
I have the following command at the bottom of my
.profilein the home directory.This adds a dev version of quarto to my
$PATHand is then accessible by a terminal, integrated into RStudio or elsewhere.However, RStudio is not "picking up" the
$PATHaddition as it is using an older version of Quarto with RStudio > Render, and the following commands point at a different executable. Callingsystem("echo $PATH")also returns a$PATHmissing the export from above.kevinushey commentedon May 27, 2022
@jthomasmock, can you also share the output of:
as executed from a shell? The output of:
from the RStudio R console might also be useful.
jthomasmock commentedon May 27, 2022
Added to comment above so it's all in one place - thanks!
mikebessuille commentedon Mar 3, 2023
Maybe related to #11822 ?