Skip to content
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

:RustFmt outputs formatted text to pager instead of formatting it in buffer #460

Open
GoldsteinE opened this issue Sep 27, 2021 · 1 comment

Comments

@GoldsteinE
Copy link

rust.vim version:
c06a17151c69b9d61e60a28274932a28fd37c453

Steps to reproduce:

  1. Open any Rust file
  2. Enter :RustFmt<CR>

Expected vs. actual behavior:

  • Expected: file is formatted
  • Actual: formatted file is shown in separate pager without highlighting

Paste debugging info from the Rust Vim plugin via one of the following
commands: :RustInfo, :RustInfoToClipboard, or :RustInfoToFile <filename>.

None of this commands exist.

I use NeoVim v0.6.0-dev and rustfmt 1.4.37-nightly (f586d79 2021-06-13)

@lrabbt
Copy link

lrabbt commented Oct 20, 2021

I had the same problem using the pre-packaged rust.vim from NeoVim v0.5.1 on Arch.

It happened because --write-output=overwrite was hardcoded on autoload/rustfmt.vim:RustfmtCommand and it seems to be an option that is not present on rustfmt v1.4.37-stable (the version I have here).

I solved it by having vim-plug update the plugin directly from this repository, since the problem seems to have been solved already on master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants