(Experimental) Golang Code Completion Failing on SSH Workspace



Continuing the discussion from Experimental Go code completion:

First - thank you so much for working on this feature! :grin:

ChromeOS / Chrome 48
SSH Workspace - Debian 8 x64
I have a SSH workspace setup and enabled the new experimental go autocompletion and get the following error message whenever autocomplete tries to load or list options (screenshot attached). Go is installed on the system (which go = /usr/local/go/bin/go).

The javascript console output:

worker.js:12518 [stderr] bash: go: command not found

worker.js:1549 Fatal error in plugins/c9.ide.language.jsonalyzer/server/handlers/jsonalyzer_go_server Object {message: "ENOENT: No gofmt installation found", stack: "15236: 4019: Error: ENOENT: No gofmt installation …  at process._tickDomainCallback (node.js:381:11)", code: "EFATAL"}onResult @ worker.js:1549EventEmitter._signal @ worker.js:136window.onmessage @ worker.js:35
worker.js:5852 15236: 4019: Error: ENOENT: No gofmt installation found
    at plugins/c9.ide.language.jsonalyzer/worker/jsonalyzer_base_handler.js:83:31
    at exithandler (child_process.js:751:5)
    at ChildProcess.errorhandler (child_process.js:758:5)
    at ChildProcess.emit (events.js:107:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1065:12)
    at child_process.js:1137:20
    at process._tickDomainCallback (node.js:381:11)(anonymous function) @ worker.js:5852onResult @ worker.js:1549EventEmitter._signal @ worker.js:136window.onmessage @ worker.js:35

I know it’s a very new feature, but I’d be happy to pass along any details I can or just wait if it’s still super unstable.


Turns out there is a bug in code for launching the linter for go, as projectDir https://github.com/c9/c9.ide.language.jsonalyzer/blob/master/server/jsonalyzer_server.js#L126 is undefined for some workspace
This will be fixed sometime next week.
Thanks for reporting!