Skip to content

Bug: Switching pane to terminal pane before Prettier finishes inserts strange characters #239

Description

@lazopm

Do you want to request a feature or report a bug?
bug

What is the current/expected behavior?
Current:

  1. Save buffer
  2. Move to :term window while prettier is running in the background
  3. Vim freezes
  4. press ctrl+c, "Can't parse buffer" error appears.
    bug00
  5. Go back to original pane, there are strange characters on top of the file
    bug0

Expected:
vim-prettier can still update the old pane if you move to a term pane before it finishes

What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0-alpha

What version of prettier are you using - (output of :PrettierCliVersion) ?
2.0.5^@

What is your prettier executable path - (output of :PrettierCliPath) ?
prettier

Did this work in previous versions of vim-prettier and/or prettier ?
Not sure, I recently switched from tmux to :term. I've been seeing occasionally at work but finally can repro consistently on my rasbperry pi since it's slower and gives me time to switch panes before prettier finishes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions