今天在折腾 go-mode 但是 报了如下的错,请问如何解决?
Company: An error occurred in auto-begin
Company: backend (company-go :with company-yasnippet) error "GOCODE PANIC: Please check your code by "go build"" with args (candidates b1)
Suspicious state from syntax checker go-staticcheck: Flycheck checker go-staticcheck returned non-zero exit code 2, but its output contained no errors: flag provided but not defined: -f
Usage of staticcheck:
staticcheck [flags] # runs on package in current directory
staticcheck [flags] packages
staticcheck [flags] directory
staticcheck [flags] files... # must be a single package
Flags:
-generated
Check generated code
-go version
Target Go version in the format '1.x' (default 1.9)
-ignore string
Space separated list of checks to ignore, in the following format: 'import/path/file.go:Check1,Check2,...' Both the import path and file name sections support globbing, e.g. 'os/exec/*_test.go'
-min_confidence float
Deprecated; use -ignore instead
-tags build tags
List of build tags
-tests
Include tests (default true)
Try installing a more recent version of go-staticcheck, and please open a bug report if the issue persists in the latest release. Thanks!