From 9e7a8b739398e38485fc6dc48ee16d8a9279180d Mon Sep 17 00:00:00 2001 From: "Aeneas Rekkas (arekkas)" Date: Wed, 21 Dec 2016 23:28:40 +0100 Subject: [PATCH] resolve windows path issue, partially resolving #19 --- watcher/exec.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/watcher/exec.go b/watcher/exec.go index 4770469..017605a 100644 --- a/watcher/exec.go +++ b/watcher/exec.go @@ -34,6 +34,8 @@ func (p *Project) goRun(channel chan bool, runner chan bool, wr *sync.WaitGroup) } else { if _, err := os.Stat(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path))); err == nil { build = exec.Command(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path)), params...) + } else if _, err := os.Stat(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path)) + ".exe"); err == nil { + build = exec.Command(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path)) + ".exe", params...) } else { p.Buffer.StdLog = append(p.Buffer.StdLog, BufferOut{Time: time.Now(), Text: "Can't run a not compiled project"}) p.Fatal(err, "Can't run a not compiled project", ":")