Skip to content

Errors do not stop code execution #1700

Description

@ThomasSoeiro

Describe the bug

Errors do not stop code execution

To Reproduce

  1. Create a R file with the following content:
x <- 2
stop("stop here!")
x * 2
  1. Select all (ctrl+A)
  2. Send to terminal (ctrl+enter)
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions