Reputation: 32104
I downloaded latest Gogland in order to run/debug Go 1.8.1 applications.
I have the exact problem in Latest Intellij Ultimate EAP.
my project's main
package contains several files, when I try to run/debug it as a Go Application
, it acts as a Go Single File
.
which means that when I try to run the application while choosing the main go file, it complains about missing variables definitions from other files on that same directory that are in the main
package as well.
in the Run Configuration
when I choose Package
instead of File
, I can't choose the main
package.
so how do I run/debug my project properly ?
thanks! :)
Upvotes: 1
Views: 660
Reputation: 7477
I've created the following video https://youtu.be/ko-wKntCLjg to better demonstrate how to achieve this.
There are two options that are also shows in the video:
Depending on your operating system or application type, the first one might be needed, while the second one is purely functional for various use-cases (and as I've said, personal preference).
Hope this helps.
Upvotes: 2