-
Notifications
You must be signed in to change notification settings - Fork 130
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
Every time R terminal opens in VS Code , getting below...any idea how to fix? #330
Comments
Hi @mwilson19, this is almost certainly because you're using the Python extension as well. When using a Python interpreter in a conda/virtualenv/etc. environment, the Python extension will send lines to any new terminal window to try to activate that environment. In this case, it happens after the R console has already been launched. It would be nice if the Python extension didn't do this for new terminals created by other extensions, although I'm not sure if VS Code provides a way for extensions to check this. I will have a look at the Python extension's issue tracker to see if this has been raised there. |
I created an issue at the Python extension's repo: microsoft/vscode-python#11963 |
Thank you, man i'm novice but still struggling with session watcher, was working fine but now the init.R doesn't seem to be working...so the plots / data frames etc.. are not rendering...code is working fine. |
@mwilson19 Does the session watcher work with Python extensions inactivated? Does your R session start normally with |
Let me try with inactivated. Right now the vscode-R directory is located along with my working files, should it be placed somewhere else and how can i source properly? Thank you! |
Yep still not working when python ext deactivated. I bet it's not sourcing the init.R file properly...Thank you. |
Are you creating R terminal via |
R: create R terminal, i see "R Interactive" as the terminal , then run script to plot. |
Do you see any error on R terminal startup? If not, would you please post the output of |
|
Thanks, and also yes, i see a [1] FALSE every time opening R terminal |
Just noticing - I am seeing temp folders being created and can view the png plots , but it seems not rendering live in vs code. Also seems I get the .vscode folder with vscode-R in several directories depending on where I started my terminal session. Is there a way I can source from same point everytime ? |
The Currently, session watcher only works when the R session is started from the same directory you open as the workspace root in VSCode. And I notice that your workspace folder is in Would you like to try open a folder not in OneDrive folder and also as the workspace folder in VSCode and the session watcher should work. |
Ok thank you ! |
[1] FALSE
The text was updated successfully, but these errors were encountered: