Komodo IDE 9: Error compiling outline: unable to locate Go executable

I’m trying Komodo IDE 9 for Golang,
when opening a .go file, a notification says “Error compiling outline: unable to locate Go executable”.

I have go in my path and also GOROOT and GOPATH are set,
I also tried setting the go binary location in the preferences, with the same result.

how to fix this ?!

First, could you try restarting Komodo to ensure its picking up your Go executable?

If that doesnt work, please verify whether your environment variables under Preferences > Environment are properly set?

I tried restarting several times, tried completely reinstalling (deleted ~/.komodoide first),
tried setting GOPATH and GOROOT in prefs -> env, tried choosing the go tool location in prefs -> languages.
everything result in the same error notification.

What is your platform? Could you share your error log after reproducing the error - Help > Troubleshooting > View Log File.

Ubuntu 14.04

[2015-04-05 11:41:11,114] [INFO] Startup: Welcome to Komodo IDE 9.0.0 build 87165 (platform linux-x86_64, running on Linux 3.13.0-48-generic version #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015)
[2015-04-05 11:41:11,115] [INFO] Startup: /usr/bin/python built on Wed Mar 18 21:57:09 2015
[2015-04-05 11:41:11,425] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2015-04-05 11:41:11,428] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'component' directive. (1) in file:///home/gal/Komodo-IDE-9/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:1
[2015-04-05 11:41:11,428] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'contract' directive. (1) in file:///home/gal/Komodo-IDE-9/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:2
[2015-04-05 11:41:11,429] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'interfaces' directive. (1) in file:///home/gal/Komodo-IDE-9/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:3
[2015-04-05 11:41:11,511] [WARNING] root: ko.logging has been converted to a CommonJS module; use require("ko/logging") instead (since Komodo 9.0.0a1).
    @chrome://komodo/content/komodo.js:15:1

[2015-04-05 11:41:11,806] [WARNING] console-logger: Unknown property 'border-radius-top-left'.  Declaration dropped. (1) in less://commando/skin/commando.less:18
[2015-04-05 11:41:11,806] [WARNING] console-logger: Unknown property 'border-radius-top-right'.  Declaration dropped. (1) in less://commando/skin/commando.less:19
[2015-04-05 11:41:12,225] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///home/gal/Komodo-IDE-9/lib/mozilla/components/koamAddonManager.js:138
[2015-04-05 11:41:13,715] [WARNING] koSkin: Detected GTK theme via libgtk: Ambiance
[2015-04-05 11:41:14,820] [WARNING] root: ko.findresults was already loaded, re-creating it.

[2015-04-05 11:41:14,858] [WARNING] RefactoringLanguageServiceBase: Can't find a refactoring service for Go
[2015-04-05 11:41:14,859] [WARNING] koLanguage: Asked for unknown language: 'None'
[2015-04-05 11:41:15,422] [DEBUG] places_js: waiting for document complete
[2015-04-05 11:41:16,197] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/komodo.xul:0
[2015-04-05 11:41:16,197] [WARNING] console-logger: Key event not available on some keyboard layouts: key="u" modifiers="control,alt" (1) in chrome://komodo/content/komodo.xul:0
[2015-04-05 11:41:16,198] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/komodo.xul:0
[2015-04-05 11:41:18,984] [ERROR] codeintel.go: Error compiling outline: Unable to locate go executable
[2015-04-05 11:41:33,662] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/tail/tail.xul:0
[2015-04-05 11:41:33,663] [WARNING] console-logger: Key event not available on some keyboard layouts: key="u" modifiers="control,alt" (1) in chrome://komodo/content/tail/tail.xul:0
[2015-04-05 11:41:33,664] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/tail/tail.xul:0

You said you set up GOPATH and GOROOT, did you set up PATH?

same result

What method did you use to install Go? (If apt, please provide the repository and version).

godeb - http://blog.labix.org/2013/06/15/in-flight-deb-packages-of-go

I think @toddw fixed this issue here - https://github.com/Komodo/komodo-go/commit/17ea8cd9be4f9a16bd854467f7fdbf40fc8b132d

Coming to the nightly release soon.

I just had this issue on Windows (I’m actually using Win10 but I don’t think the pre-release status there is related). The problem seems to be due, in my case, to Komodo and child processes (hence, go) being unable to write to c:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\golang@activestate.com\golib\ and therefore cannot create the outline.exe file there. I am unsure of a fix other than to change Komodo to look for and save the executable to the current-user’s Windows-profile directory: C:\Users\<username>\AppData.

Despite fixing this issue by compiling and then moving the file into place as an admin, I have hit a second error where gocode cannot be found. Is this executable supposed to be provided by Komodo and/or the go extension or should I install it from upstream?

We’ll track your issue in the new thread that you opened @diddledan