Open GoogleCodeExporter opened 9 years ago
I have the same problem on Windows 7 64 bit machine:
I make a Go1 project in e:\goprojects, which is also the value of my GOPATH
variable.
When I try to build the generated source file, I get:
<action id="Build" cmd="$(GO)" args="build">
<start="c:/go/bin/go.exe build"
workdir=""/>
can't load package: package .: no Go source files in
E:\Go\ides\LiteIde 1.1B2\bin
<exit code="1" msg="process exited
normally"/>
</action>
The command searches in E:\Go\ides\LiteIde 1.1B2\bin, which is the value of the
LITEAPPDIR variable, but this cannot be changed!
Please help: before the Go1 changes this all worked and it was my favourite Go
environment and I know it is very good, but now I can't get it to build and run
anymore!
Ivo Balbaert
Original comment by ivo.balbaert
on 9 Apr 2012 at 12:11
[deleted comment]
I found my problem. The GOPATH needs to be defined as $HOME/gocode. It finds
all the packages and compiles them, but places the executable in the src
directory. According to the GO1 instructions the executable should be placed in
the bin directory. I'm using a darwin_amd64.
Original comment by j.christ...@gmail.com
on 15 Apr 2012 at 2:52
#3's fix doesn't work for me. Even putting my code in $HOME/gocode and manually
specifying that as the path doesn't fix the problem...it still says it cannot
find any packages.
Original comment by jeffrey.mitchell
on 4 Jun 2013 at 9:57
Original issue reported on code.google.com by
j.christ...@gmail.com
on 7 Apr 2012 at 4:56