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
and then in the notebook R session you call rstudioapi::sendToConsole(), then that will hilariously send the text to the console R session rather than the active notebook R session.
This is a result of us using the languageId as our guide of where to execute the code, but that ends up always resolving to a console session, and never a notebook session.
It may also be the fault of our rstudioapi shims in ark. It is possible we should error if we detect that we are in notebook "session mode" rather than console session mode and we call an rstudioapi shim, like this in just a typical terminal R session
I'm worried that anyone working in an ipynb or another notebook will run something that triggers an rstudioapi command in that notebook, but the command ends up getting executed in their Console R session rather than the Notebook R session
It is possible that in ark we just need to not allow parts of the rstudioapi like executeCode() if we detect we are in "notebook" mode rather than "console" mode, because in notebook mode there isn't really a console to execute in.
If you open two R sessions:
and then in the notebook R session you call
rstudioapi::sendToConsole()
, then that will hilariously send the text to the console R session rather than the active notebook R session.This is a result of us using the
languageId
as our guide of where to execute the code, but that ends up always resolving to a console session, and never a notebook session.positron/src/vs/workbench/services/positronConsole/browser/positronConsoleService.ts
Line 401 in 2e3827d
It may also be the fault of our rstudioapi shims in ark. It is possible we should error if we detect that we are in notebook "session mode" rather than console session mode and we call an rstudioapi shim, like this in just a typical terminal R session
The text was updated successfully, but these errors were encountered: