-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Invalid line number panic #5278
Comments
Also experiencing this in CI against version |
If you are facing the same problem, the best way to contribute is to provide the following information: A code example or link to a public repository.
|
FYI, I'm on the topic |
I created a fix. The problem happens when a file has no EOL on the last line of the file. |
Fixed in v1.63.2 |
We're still getting the same error with v1.63.2
The output doesn't specify which file is causing the panic. I've seen it fail complaining about different packages. |
Can you try v1.63.3? |
Thanks - v1.63.3 worked (renovate bot just updated the PR). |
So your problem was related to #5285 The problem was related to the following files:
Because they contain 2 empty lines at the end of the file. |
Welcome
typecheck
section of the FAQ.Description of the problem
I would expect golangci-lint to not crash. Maybe sending errors but not panic
Version of golangci-lint
Configuration
# paste configuration file or CLI flags here
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
https://github.com/scaleway/scaleway-cli
You should reproduce with this commit scaleway/scaleway-cli@d03f829
Validation
Supporter
The text was updated successfully, but these errors were encountered: