-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
goimports-reviser not importing and undoing on save #112
Comments
Screencast.from.2023-03-24.14-10-39.webm |
You should try reaching out to null-ls devs about this, as it likely needs some edits in the builtin itself (related to reading the old saved file, but not the new unsaved version). |
hi @kcaashish |
Hey @incu6us, we did solve it by writing into a temp file. I think the issue here is taking input from stdin. Possibly this #94! We had a discussion over at null-ls and chose to use temp file for now until this gets fixed in goimports-reviser. The discussion: jose-elias-alvarez/null-ls.nvim#1472 (reply in thread) Anything on this? |
So instead of :
we are using:
Anyway to fix this? |
fixed stdin feature in |
My config for
goimports-reviser
is:In a very simple go project with
go.mod
:main.go
:Notice the absence of imports statment as well. So there should be a
undeclared name: fmt
error. If I format the code, the imports are not auto imported.If I delete the line fmt.Println()
dd
then hit:w
, the line pops back up.The text was updated successfully, but these errors were encountered: