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

加载完成后打开报下面的错误 #89

Closed
workwb opened this issue Nov 12, 2021 · 2 comments
Closed

加载完成后打开报下面的错误 #89

workwb opened this issue Nov 12, 2021 · 2 comments

Comments

@workwb
Copy link

workwb commented Nov 12, 2021

java.lang.Exception: Failed to Discover Linters: RunProcessResult(returnCode=2, stdout=, stderr=panic: load embedded ruleguard rules: rules/rules.go:13: can't load fmt

goroutine 1 [running]:
github.com/go-critic/go-critic/checkers.init.9()
github.com/go-critic/go-critic@v0.6.1/checkers/checkers.go:58 +0x4b4
)
at com.ypwang.plugin.GolangCiOutputParser.parseLinters(GolangCiOutputParser.kt:34)
at com.ypwang.plugin.form.GoLinterSettings.lambda$initializeLinters$17(GoLinterSettings.java:384)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:265)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)

@xxpxxxxp
Copy link
Owner

这是一个来自上游linter gocritic的bug,只能等他们修好,可能下个版本的golangci-lint就可以了
go-critic/go-critic#1157
go-critic/go-critic#1126

暂时可以先disable gocritic来解决

@workwb
Copy link
Author

workwb commented Nov 12, 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

2 participants