-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird instability in qmd #77
Comments
Interestingly a single "save" calls us twice, but neither calls produce text edits 🤔 This is what i get from hitting "save" when this was in the qmd cell df |> mutate(x = foo()) |> mutate(y = bar()) |> summarise()
|
Oh I think Quarto may have an R formatter getting in the way here? If you turn off air you still get the expanded pipeline when you start flat. |
Oh I think it only happens in positron and is because styler is trying to get called! |
Ugh ok gross I think I've figured this out, quarto calls:
And for some crazy reason, that
Related microsoft/vscode#212124 where it affected black and ruff interacting! It looks like the solution for notebooks was to change to the new Ugh but
Turning off positron-r's styler registration is the long term plan anyways, so VS Code support isn't critical, but quarto should probably use this new api anyways because cycling through all formatters is a bad idea in a notebook |
It tries to flatten, looks like it succeeds (and it should), but then you save again and it re-expands? It's probably worth trying to look at the intermediate vdocs here.
Screen.Recording.2024-11-27.at.5.25.16.PM.mov
We get this on the 2nd vdoc, which looks like it formats "stable-y" in a separate R file on its own, so im not sure whats up
Exact text is
The text was updated successfully, but these errors were encountered: