Skip to content

Code chunks not being split correctly #1453

@kylebutts

Description

@kylebutts

I am facing bugs with how the extension marks R code chunks. This code does not get split correctly into three chunks:

# %% Chunk 1
print("Chunk 1")

# %% Chunk 2
print("Chunk 2")

# %% Chunk 3
print("Chunk 3")

Instead, the # %% Chunk 2 gets included in chunk 1:

CleanShot 2023-11-24 at 13 18 37@2x

When running "R: Select Current Chunk", we confirm the chunk is being mislabeled
CleanShot 2023-11-24 at 13 18 51@2x

Environment:

VSCode version: Version: 1.84.2 (Universal)

R version 4.3.0 (2023-04-21) -- "Already Tomorrow"
Platform: aarch64-apple-darwin20 (64-bit)

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