Skip to content

Quarto virtual documents intermittently overwrite contents of editor #683

Closed
@juliasilge

Description

@juliasilge

Originally posted by @brndngrhm in posit-dev/positron#6867

Sometimes a quarto file in positron will get re-formatted in an unusable way. I just opened a project and a quarto doc i was working don no longer has any code chunks or YAML, and instead there many # inserted as new lines. I'm not sure what causes this and i can't seem to undo it, so i need to basically manually re-format the file by going through it, creating code chunks and then pasting code inside the code chunks

image

There is an additional report by @kldhana in posit-dev/positron#6867 (reply in thread):

I noticed this as well, but could not reproduce.

This looks like the Quarto virtual documents going haywire somehow, as pointed out by @DavisVaughan. In the GH discussion, it seems like it happens on saving with format-on-save turned on.

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