heweitykc / liteide

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

looks for (wrong) absolute path for compiler #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout source on os x
2. Install gopromake according to Install.txt
3. Run gopromake in astview according to Install.txt

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

calypso:astview jasmuth$ gopromake -gopro astview.pro
GoproMake 0.2.1: go files auto build tools. make by visualfc@gmail.com.
command "/Users/jasmuth/go/bin/6g" not found in $PATH

It shouldn't look for "/Users/jasmuth/go/bin/6g", but rather "6g".

Original issue reported on code.google.com by jasm...@gmail.com on 25 Feb 2011 at 4:18

GoogleCodeExporter commented 9 years ago
The issue is line 81 and friends in gobin.go

p.compiler, err = exec.LookPath(path.Join(gobin,p.compiler))

should be

p.compiler, err = exec.LookPath(p.compiler)

exec.LookPath should be given the command as you might type it on the command 
line. Giving it an absolute path defeats the purpose.

Original comment by jasm...@gmail.com on 25 Feb 2011 at 5:48

GoogleCodeExporter commented 9 years ago
Can try use gopromake -goroot /Users/jasmuth/go -gopro astview.pro

Original comment by Visua...@gmail.com on 25 Feb 2011 at 11:59