Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error compiling outline: Unable to compile 'outline.go'[Errno 2] No such file or directory: 'go' #2406
Error compiling outline: Unable to compile 'outline.go'[Errno 2] No such file or directory: 'go'
Because both env.get_pref("golangDefaultLocation", "") and env.get_envvar("PATH", "") return an empty string, which.which('go', path=path) raised a which.WhichError, and get_go_exe returns 'go', which is not expected.
I have the correct configuration of PATH of the prefs->environments and the default location of languages->go.
Steps to Reproduce
get_go_exe returns the correct path of go.
get_go_exe returns "go"
Komodo Edit or IDE?
Komodo IDE, version 10.2.1, build 89853, platform macosx.
macOS Sierra 10.12.3
Hi, based on the code snippet you gave, the default location of languages -> go cannot be set correctly if Komodo gets to the
Obviously, I tested "Find on path" and the full path "/usr/local/bin/go", but both failed. When opening a go file, get_go_exe method will be invoked multi-times, the first time which is used to build outline.go, both env.get_pref("golangDefaultLocation", "") and env.get_envvar("PATH", "") return an empty string, but it's weird in the next invocations env.get_envvar("PATH", "") returns correct PATH value instead of an empty string.
How did you determine this? Modified the code with debug statements and ran it?
Also, you say it still fails even when you directly set the Go executable via Languages > Go. Is the error in this case the same or is it a different error?
@cgchoffman can you please share the nightly here when it's ready (that would be tomorrows nightly).
@danny-su once shared could you verify that the nightly fixes the problem for you? I want to make sure that this issue is limited to the codebrowser and we didn't miss anything. Given that the reproduction steps are very specific it's hard for us to verify this ourselves.
Nightly has been staged. It will be live around 12:30pm PST. Before you download to test confirm that the build ID 89870 and the version is 10.2.2, eg
They will be here: http://downloads.activestate.com/Komodo/nightly/komodoide/latest-10.2.x/