Skip to content

godiff return no output to goimports #4276

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

Closed
5 tasks done
sohailmd1-lhat opened this issue Dec 20, 2023 · 3 comments
Closed
5 tasks done

godiff return no output to goimports #4276

sohailmd1-lhat opened this issue Dec 20, 2023 · 3 comments
Labels
platform: windows Issue that is related to Windows question Further information is requested

Comments

@sohailmd1-lhat
Copy link

sohailmd1-lhat commented Dec 20, 2023

Welcome

Description of the problem

Issue is similar to #307

#1169

I am seeing this error in windows.

level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: goimports: can't extract issues from gofmt diff output "": got no diffs from patch parser: \n\n"

First I got the error that "diff" was not present in the PATH value. I installed it and added it to the PATH. Then it gave the above error where diff parser did not return any output to goimports.

Version of golangci-lint

$ golangci-lint --version
# Paste output here

Configuration

# paste configuration file or CLI flags here

Go environment

$ go version && go env
# paste output here

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here

A minimal reproducible example or link to a public repository

// add your code here

Validation

  • Yes, I've included all information above (version, config, etc.).
@sohailmd1-lhat sohailmd1-lhat added the bug Something isn't working label Dec 20, 2023
Copy link

boring-cyborg bot commented Dec 20, 2023

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@ldez ldez added platform: windows Issue that is related to Windows and removed bug Something isn't working labels Dec 20, 2023
@ldez
Copy link
Member

ldez commented Dec 20, 2023

Hello,

you provided 0 elements of the required section, your issue will be closed.
Also, the answer to your problem is inside the issues you have linked.

@ldez ldez closed this as completed Dec 20, 2023
@ldez ldez added the question Further information is requested label Dec 20, 2023
@sohailmd1-lhat
Copy link
Author

sohailmd1-lhat commented Dec 20, 2023

Hello,

Apologies for not providing the required details due to constraint of time.

The issue still seems to persists. I will open another issue with all the required details.

Also if you can please point me to workaround/fix for the issues. I have added my comment in the mentioned issue as well.

Link : #307 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: windows Issue that is related to Windows question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants