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
Describe the bug r.removeLeadingComments usually removes comments on preceding lines when those lines are submitted to the terminal. But if a line of R code is preceded by three lines that have a specific configuration—a comment, followed by a blank line, followed by another comment—the second comment will be submitted to the terminal even if r.removeLeadingComments is TRUE.
To Reproduce
In settings, enable r.removeLeadingComments
Send this code to the terminal:
# comment 1
# comment 2
print("When you submit this line to the terminal, the second comment will be submitted, too.")
You will see that "#comment 2" has been submitted to the terminal, even though it shouldn't be.
Can you fix this issue by yourself? (We appreciate the help)
No, I'm afraid not.
Expected behavior
In the example above, the print line should be submitted to the terminal, but no comment should be submitted.
Environment (please complete the following information):
Describe the bug
r.removeLeadingComments
usually removes comments on preceding lines when those lines are submitted to the terminal. But if a line of R code is preceded by three lines that have a specific configuration—a comment, followed by a blank line, followed by another comment—the second comment will be submitted to the terminal even ifr.removeLeadingComments
is TRUE.To Reproduce
r.removeLeadingComments
You will see that "#comment 2" has been submitted to the terminal, even though it shouldn't be.
Can you fix this issue by yourself? (We appreciate the help)
No, I'm afraid not.
Expected behavior
In the example above, the
print
line should be submitted to the terminal, but no comment should be submitted.Environment (please complete the following information):
Additional context
Related to #1244 and #1245.
The text was updated successfully, but these errors were encountered: