Skip to content
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

Please make sure there's no syntax error, then check if any config error #80

Closed
megaes opened this issue Aug 2, 2021 · 3 comments
Closed

Comments

@megaes
Copy link

megaes commented Aug 2, 2021

Doesnt work on M1

2021-08-02 06:57:10,588 [   8676]   WARN -                      go-linter - Run error: level=error msg="Running error: context loading failed: no go files to analyze"
. Please make sure the project has no syntax error. 
2021-08-02 06:57:10,589 [   8677]   WARN -                      go-linter - Debug command: cd /Users/admin/Documents/Work/Go/test && export PATH=/usr/local/go/bin:/usr/bin:/bin:/usr/sbin:/sbin && export GOPATH= && '/usr/local/bin/golangci-lint' 'run' '--out-format' 'json' '--allow-parallel-runners' '-j' '2' '--max-issues-per-linter' '0' '--max-same-issues' '0' '--disable-all' '-E' 'exportloopref,funlen,gocritic,goconst,gocognit,nestif,ineffassign,wsl,deadcode,unparam,structcheck,revive,prealloc,interfacer,staticcheck,govet,dupl,errorlint,gomnd,bodyclose,gosec,maligned,unconvert,unused,stylecheck,whitespace,goprintffuncname,gosimple,gocyclo' '.' 

Screenshot 2021-08-02 at 06 59 48
Screenshot 2021-08-02 at 07 00 27
Screenshot 2021-08-02 at 07 00 38
Screenshot 2021-08-02 at 07 00 58

@bobstrecansky
Copy link

I'm facing this same issue on an intel Mac on Catalina.

@xxpxxxxp
Copy link
Owner

xxpxxxxp commented Aug 2, 2021

Hi @megaes @bobstrecansky , currently the plugin is designed to work with package managed go projects, like go mod or legacy go vendor, it's true it doesn't work with single file project. I'm working on ways to be compatible with both of those projects.

A simple way to make the plugin work:

cd /Users/admin/Documents/Work/Go/test
go mod init <any package name>

Then the plugin would work happily.

@megaes
Copy link
Author

megaes commented Aug 3, 2021

You are right @xxpxxxxp, thank you.

@megaes megaes closed this as completed Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants