Search code examples
gointellij-ideagopath

How to configure Intellij


I have a skaffold Go project which I cloned. Now I want to run this Go project. I had set up the configuration in project setting and GOPATH is also correctly set. I am getting error while setting this configuration.

enter image description here

These are my GOPATH settings

enter image description here

Sometimes it runs and some time it shows the above error.


Solution

  • Great comment by Andrew, I would jot it down to the solution.

    While adding configuration change the Run-Kind to package instead of file or directory. Use this run-kind option wisely.