-
Notifications
You must be signed in to change notification settings - Fork 298
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 Error detected while processing function rustfmt#Format[7]..<SNR>96_RunRustfmt #461
Comments
I am having the same issue |
I'm having the same issue. The reported line number (eg Environment (stock Ubuntu 20.04 vim)
|
Unsurprisingly this also occurs when using Here is my
|
I'm not a vimscript writer and have been just jamming I think there's a problem /w the command, either its construction or execution. The error message is empty because its not a Deleting the One odd thing is that I expect to be in this branch when invoking |
I have exactly the same issue, it seems that
There is no Interestingly, the version of Executing
|
This statement is false, the issue is somewhat more subtle: I already had an old
Following the instructions of |
The
The version in my I am able to run I think there may be multiple root causes that aren't obvious because the error reporting from the shell command seems unreliable. In my case, |
I was having this issue using NVIM v0.6.0. After some investigation I noticed that Neovim's default installation already includes and autoloads both rust.vim and rustfmt.vim. Checking these files in the repository revealed that these scripts are very old (2017). Adding the |
I think adding |
Just to add some information here, I noticed this issue as well, and it seems to only happen on nightly for me. I'd set Then again, the versions are different, so it might be related to that. I did have this issue with older versions of both nightly and stable, but I don't have their version information anymore (I updated today and the previous were from ~6 months ago). Works: Does not work: |
I am having the same issue as well. Running I have tested it in both the current stabe and nightly builds (listed below), and for me, the problem persists regardless. Builds Tested: stable-x86_64-unknown-linux-gnu (default) nightly-x86_64-unknown-linux-gnu (directory override for '/...') EDIT: |
I'm not using YouCompleteMe, but have the same issue and the same fix (add
How to reproduceStart with an empty nvim install:
Use this nvim config:
This is with nvim |
TLDRInstall latest plugin version of " ~/.config/nvim/init.vim
set shell=/bin/bash -- ~/.config/nvim/init.lua
vim.opt.shell = '/bin/bash' DescriptionI ran into this issue recently as well, but in my situation, there were two reasons. The first reason, was my usage of Neovim which comes bundled with an outdated version of this plugin. This caused some incompatibility because my version of The second reason was related to my choice of shell. For context, I use nushell as my login shell, and nushell operates quite differently in comparison to other POSIX compatible shells i.e. bash, fish etc. One major difference is the way that it handles stdout and stderr redirection. Nushell does not use |
If you are using Vim 8 it is very easy to install the |
Just going to add what fixed this for me...I was trying out the dein plugin manager but since I'm such a vim-noob I forgot to actually run |
i still have this problem after running the latest neovim, and adding this plugin. Any idea how to troubleshoot? |
This fixed the issue for me. My shell is normally zsh. Cheers! |
This is exactly solution to run |
But on another machine with Debian sid and below packages without installing vim plugin RistFmt works fine.
|
rust.vim version:
4aa69b8
Steps to reproduce:
:RustFmt<CR>
Expected vs. actual behavior:
Environment:
The text was updated successfully, but these errors were encountered: