REditorSupport / REditorSupport/vscode-R
Errors do not stop code execution
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Describe the bug
Errors do not stop code execution
To Reproduce
- Create a R file with the following content:
x <- 2
stop("stop here!")
x * 2
- Select all (ctrl+A)
- Send to terminal (ctrl+enter)
- The line after
stop()in executed anyway:
> x <- 2
> stop("stop here!")
Error: stop here!
> x * 2
[1] 4
Can you fix this issue by yourself? (We appreciate the help)
No
Expected behavior
Code execution should stop when an error is thrown.
Environment (please complete the following information):
- OS: Windows
- VSCode Version: VSCodium 1.112.01907
- R Version: 4.4.0
- vscode-R version: 2.8.8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VSCode with an R file containing stop() followed by another expression, then select all and send it to the terminal. Trace the extension's handling of selected code and terminal execution. Done means execution stops after the error and the expression after stop() is not executed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100