-
Notifications
You must be signed in to change notification settings - Fork 14
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
no go files to analyze #78
Comments
Hi @NSObjects , I'm afraid I didn't understand your question, those 2 screenshots don't seem related to the plugin? The plugin does not output anything, it does lint in editor. And BTW the problem of the first screenshot is that the current running dir should be at |
I am also receiving this error, even after the latest plugin updates (running v1.5.4). This is the error output in the GoLand log file (NOTE: I've removed my username from the path and replaced with
I am referencing a I have tried the following:
Setup: |
Hi @sleyland , from the
|
Hi @xxpxxxxp I've rechecked the IDE settings and there is a globally configured I've also checked in my terminal by simply doing an NOTE: I've also tried this in IntelliJ to see if there was any difference (not that there should be) and it also fails for the same reasons there (since that was the editor you demonstrated in your screenshot). |
Thanks @sleyland for quick reply, would you try following commands in your terminal, with
|
Hi @xxpxxxxp, Testing the command as you provided does work and provides prints a JSON style output to the terminal of all of the "issues" within the code. I did also get a warning with the output, but that seems more related to the linting configuration that is used in our projects.
Thus, since the command works in the terminal with the Thanks, |
Hi @sleyland , seems the problem is the plugin failed to get |
Hi @xxpxxxxp , Apologies for not getting back to you sooner, but I've just added the appropriate Goland log output:
"Fresh" terminal output:
|
Hi @sleyland , that was surprising, the plugin is running the exact command inside. I guess there are some env variable differences between the IDE and the terminal. Please run the exact commands in the IDE terminal ( |
Hi @xxpxxxxp , The command also works inside the
So as you mentioned, it is likely that there is some environment variable difference between how it executes inside the IDE and then in the terminal. Thanks, |
Hi @sleyland , I'm trying to reproduce the issue you are facing, since you are working on a non-open-source project, any chance you can try the plugin with an open-source project, eg: https://github.com/gin-gonic/gin codebase is smaller enough to clone and build in minutes, see if the plugin works. |
Hi @xxpxxxxp , Seemingly everything is working fine with that project in Goland/IntelliJ. I can see various highlighted warnings inside the code editor when using "my" linting configuration. I also checked the Thanks for looking into this, and apologies that the code I'm working on isn't open-source (making life difficult) |
GoLand 2021.1.3
Build #GO-211.7442.57, built on June 9, 2021
golangci-lint has version v1.41.1
Go Linter 1.5.3
The text was updated successfully, but these errors were encountered: