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
Run Selection can't handle multi line strings #1313
okay so i figure it out, I had the same shortcut to send code to the terminal for all file types, basically I used it for bash, when resetting that shortcut it started to work again.
The cmd+Enter shortcut is quite populated so it was a bit hard to find. You can also manually change the shortcut for @command:r.runSelection to anything w/o collisions. For completeness, I think my conflict was coming from @command:workbench.action.terminal.runSelectedText +when:terminalProcessSupported that I manually set some time ago.
@eitsupi@Fred-Wu@grantmcdermott Is this something we can work around? Perhaps it can be added to a milestone? (I'm probably biased, since this bug keeps bothering me regularly…)
Incidentally, I believe arf console achieves this by using tree-shitter to determine if it's a complete R expression before executing it.
I think the same thing could probably be done here, but I don't think I'll be doing the implementation myself, so contributions from anyone willing to do so are welcome.
Activity
github-actions commentedon Mar 1, 2024
This issue is stale because it has been open for 365 days with no activity.
gowerc commentedon Mar 1, 2024
Not stale
ml-crowe commentedon May 16, 2024
I am running into this same issue.
davidmasp commentedon Jun 11, 2024
me too
R version 4.1.2R vs code
v2.8.4vscode
1.90.0davidmasp commentedon Jun 11, 2024
Might be related to this? #731
There they say that another R extension for VS code is messing up this behavior.
I can confirm that when running with the command palette works fine but I don't have any other R extension mentioned in the other issue
davidmasp commentedon Jun 11, 2024
okay so i figure it out, I had the same shortcut to send code to the terminal for all file types, basically I used it for bash, when resetting that shortcut it started to work again.
The
cmd+Entershortcut is quite populated so it was a bit hard to find. You can also manually change the shortcut for@command:r.runSelectionto anything w/o collisions. For completeness, I think my conflict was coming from@command:workbench.action.terminal.runSelectedText +when:terminalProcessSupportedthat I manually set some time ago.ThomasSoeiro commentedon Sep 27, 2026
@eitsupi @Fred-Wu @grantmcdermott Is this something we can work around? Perhaps it can be added to a milestone? (I'm probably biased, since this bug keeps bothering me regularly…)
eitsupi commentedon Sep 27, 2026
Incidentally, I believe arf console achieves this by using tree-shitter to determine if it's a complete R expression before executing it.
I think the same thing could probably be done here, but I don't think I'll be doing the implementation myself, so contributions from anyone willing to do so are welcome.
Fred-Wu commentedon Sep 27, 2026
One workaround is to use
r"()", but can only submit as a whole at the closing quote.