Alright, so in goland, of which I love the ide and tooling, you have to setup a configuration to point to a go file that has package main in it. When you point he goland configuration to a library (module/package) that is not executable, the tool will complain that your exe is in in the wrong format. So I am being a newb on this issue but you live and learn.
Now, what would be more ideal is if the goland ide (which jetbrains needs to change) told you that your config was not pointed to an exe. On Sunday, August 4, 2019 at 1:54:20 PM UTC-5, Qais Patankar wrote: > > Please share the solution. > > On Sunday, 4 August 2019 16:50:45 UTC+1, Allan Edwards wrote: >> >> I am sorry, ignore me, I figured it out. Problem in goland >> configuration. Thanks for the response. >> >> On Sunday, August 4, 2019 at 10:44:12 AM UTC-5, Alexander Kapshuk wrote: >>> >>> On Sun, Aug 4, 2019 at 6:37 PM Allan Edwards <wallan...@gmail.com> >>> wrote: >>> > >>> > I have written a small console application that has package main at >>> the top and the program looks just like another console that runs >>> successfully. On both mac and windows I am getting a message stating the >>> executable created is not executable. Has anyone else seen this error? I >>> am on go 1.12.7. >>> > >>> > Thanks!!! >>> > Allan >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups "golang-nuts" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an email to golan...@googlegroups.com. >>> > To view this discussion on the web visit >>> https://groups.google.com/d/msgid/golang-nuts/e1073a26-1288-40e2-b14e-bca0b926760d%40googlegroups.com. >>> >>> >>> >>> Can you please run the command line below on your Mac and post the >>> output: >>> file your_executable >>> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/21221161-7fe7-449f-95ac-e8c1d5ebe6f3%40googlegroups.com.