ppradeepk / golangide

Automatically exported from code.google.com/p/golangide
0 stars 0 forks source link

won't except the GOPATH input #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. press the "Go" tab in LiteIDE -macosx10.6-x11-beta
2. Enter the custome GOPATH for sources, which in my case is "$HOME/gocode/src  

3.

What is the expected output? What do you see instead?

Liteide should look for go sources at the custom GOPATH
It ignores this input and always searches for source files in in gocode and 
outputs
the following: "can't load package: package .: no Go source files in 
/Users/Jim/gocode"
What version of the product are you using? On what operating system?
darwin AMD64 on Imac 10.7

Please provide any additional information below.

If I place my source file in the gocode dir It finds it and produces an 
executable called "gocode". The following is the compete error message:    
action id="Build" cmd="$(GO)" args="build">
<start="/Users/Jim/go/bin/go 
build" workdir=""/>
can't load package: package .: no Go source files in 
/Users/Jim/gocode
<exit code="1" msg="process exited normally"/>
</action>

Original issue reported on code.google.com by j.christ...@gmail.com on 7 Apr 2012 at 4:56

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
#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