-
Notifications
You must be signed in to change notification settings - Fork 571
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
Run fails with new 'Go install' build system #248
Comments
Yes, I know this issue, but if you build the project for the first time before run it, it will work fine. |
I see, I'll leave this open for future reference. Thanks for the work on this ;) |
I am having this issue with IntelliJ 13, Mac 10.9. Building project before first run does not work either... |
@abdulkadiryaman using the latest master, try switching to the default internal build system and then run the project. It should work. If not, paste here the error message |
@dlsniper it is already default to internal build system under GO settings from preferences. I can build the project, it compiles successfully. If I run it throws this error ; 12:02:30 AM Error running main.go: Cannot find target. Is main function defined in main package? and the main.go is ; package main
import "fmt"
func main() {
fmt.Printf("Hello world!")
} btw, @dlsniper thanks for the quick response... |
I'm also having the exact same issue as abdulkadiryaman with Go 1.2 and IDEA 13 |
Same here, osx 10.9, Go 1.2, Released IDEA 13, gopath is my $HOME/go.. GOROOT=/usr/local/go.. can compile fine but on run the default hello world returns: Error running main.go (5): Cannot find target. Is main function defined in main package.. If I hit the terminal "go run"... all is good |
also IDEA 12 works fine with released GO 1.2 and the go plugin... |
This bug has been fixed by 4df8926. And Go Install or default build system doesn't matter any more. |
Do you think it makes sense to hide the options for now? If so, I'll do a
|
Yes, I think the build system option should be hidden. |
The plugin works now with IDEA 13 after being built with the latest code from this repository.
Change the value of location to the installation directory of IDEA ide.
Build the project with ant.
After a successful build, |
LarryBattle, thanks! that worked for me as well, I had not seen the updates... ran the build on my ubuntu box snagged the jar and loaded on my osx box and all is good. |
I've built the master of this plug-in upon go 1.1.1 / amd64 and IntelliJ IDEA 129.1135 sources and tried to run a simple project.
Running the project will result in the following error:
Compiling the project is working as expected. The other compile modes are unaffected by this issue.
Also, on IntelliJ IDEA v13 EAP 132.32, the new build system still gives out the deprecated message:
Thanks.
cc @coocood
The text was updated successfully, but these errors were encountered: