Closed sig-saraf closed 2 years ago
Hi @sig-saraf , I've made an update, does the latest version working for you?
@xxpxxxxp I'm seeing the latest version as 1.5.10 in my IntelliJ marketplace and the above scenario is using that. Any instructions how or where can I see and install the even latest?
The latest version is 1.6.0, click Intellij IDEA on the left top, check for updates, it will update all plugins to latest version
@xxpxxxxpI was on an older version of IntelliJ and your version 1.6.0 was not supported on that version of IDE. I updated my IDE and the plugin too, and I confirm it seems to be working for me now. Great, thanks! Feel free to close this.
I'm facing error while running the Go Linter tool downloaded as a plugin from the market place, in my IntelliJ IDEA IDE. The following are the details around the scenario for your reference.
Preferences -> Languages & Frameworks -> Go -> GOROOT
Preferences -> Languages & Frameworks -> Go -> GOPATH
. I have set this for my projects that doesn't use go modulesEnable Go modules integration
is checked in my IDE underPreferences -> Languages & Frameworks -> Go -> Go Modules
Project Root
is checked and set to the project directory underPreferences -> Tools -> Go Linter
Go linter running error Please make sure no syntax or config error, then run 'go mod tidy' to make sure deps ok
idea.log
say:2022-08-19 15:25:19,930 [ 270022] WARN - go-linter - Run error: level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for \"sig-gitlab.internal.organisation.com/name1/module1/path1\"" level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for \"sig-gitlab.internal.organisation.com/name1/module1/path1\"\n\n" . Please make sure the project has no syntax error. 2022-08-19 15:25:19,930 [ 270022] WARN - go-linter - Debug command: cd /Users/saraf/GoLang/name1/name2/project-dir && export PATH=/usr/local/go/bin:/usr/bin:/bin:/usr/sbin:/sbin && export GOPATH=/Users/saraf/OneDrive - Organisation, Inc/Documents/Projects/GoLang/Organisation:/Users/saraf/GoLang && '/usr/local/bin/golangci-lint' 'run' '--out-format' 'json' '--allow-parallel-runners' '-j' '4' '--issues-exit-code' '1' '--max-issues-per-linter' '0' '--max-same-issues' '0' '--no-config' '--disable-all' '-E' 'exportloopref,funlen,errchkjson,gocritic,goconst,errcheck,gci,gocognit,ineffassign,deadcode,asasalint,revive,bidichk,prealloc,staticcheck,gochecknoglobals,govet,dupl,errorlint,errname,typecheck,gochecknoinits,bodyclose,varcheck,asciicheck,gosec,goerr113,unconvert,unused,godox,stylecheck,whitespace,goprintffuncname,gosimple,godot,gocyclo' '.'
GO111MODULE=auto
Any help would be really appreciating. Thanks in advance!
Version of golangci-lint
Information here is from Terminal
Configuration file
Not using any configuration file
Go environment
Information here is from Terminal
Verbose output of running
Information here is from Terminal
Code example or link to a public repository
Non-public project