neoformat icon indicating copy to clipboard operation
neoformat copied to clipboard

[Question] How to get error?

Open TornaxO7 opened this issue 3 years ago • 1 comments

Hello! Currently I'm getting the following error message if I run :Neoformat rustfmt: image

Is it possible to get more information about the error?

TornaxO7 avatar Aug 31 '22 12:08 TornaxO7

Had a similar problem, got a better error message when using mhartington/formatter.nvim, for me it had something to do with rustfmt thinking the project was running rust 2015 edition.

Was able to fix by creating rustfmt.toml and putting edition = 2021 in it, after finding this.

Problem did not arise when running cargo fmt since rustfmt then has access to Cargo.toml and can check the rust edition.

bjornevik avatar Sep 06 '22 06:09 bjornevik

Sorry for the late reply! Thank you for the information. Currently I'm not able to reproduce it anymore, so I'll close this for the time being.

TornaxO7 avatar Nov 29 '22 11:11 TornaxO7