New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure for WSL #824

alexkavon opened this Issue Mar 24, 2018 · 1 comment


None yet
2 participants

alexkavon commented Mar 24, 2018


It would be nice if GoSublime could be configured to use WSL (Windows Subsystem for Linux). I've tried the following settings but am coming up with errors. It appears to still try to install the windows flavor, even though I'm specifying Linux. I should mention I'm using the debian WSL version.


	"shell": ["C:/Windows/System32/bash.exe", "--login", "-c", "${CMD}"],
	"env": {
		"shell": "/bin/bash",
		"GOROOT": "/usr/local/go",
		"GOPATH": "/mnt/c/Users/hawk/go"


| GoSublime error: MarGo build failed
|                > This is possibly a bug or miss-configuration of your environment.
|                > For more help, please file an issue with the following build output
|                > at:
|                > or alternatively, you may send an email to:
|                > 
|                > 
|                > cmd: `['', 'build', '-tags', '', '-v', '-o', 'gosublime.margo_r18.03.23-1_go?.exe', 'gosublime/cmd/margo']`
|                > stdout: `
|                > 
|                > `
|                > stderr: `
|                > 
|                > `
|                > exception: `Cannot find command `go``
|   install state: busy
| sublime.version: 3143
| stable
|       about.ann: a18.03.23-1
|   about.version: r18.03.23-1
|         version: r18.03.23-1
|        platform: windows-x64
|            ~bin: ~\AppData\Roaming\Sublime Text 3\Packages\User\GoSublime\windows-x64\bin
|       margo.exe: ~bin\gosublime.margo_r18.03.23-1_go?.exe (missing)
|          go.exe: go (missing)
|      go.version: go?
|          GOROOT: /usr/local/go
|          GOPATH: /mnt/c/Users/hawk/go
|           GOBIN: (not set)
| ['C:/Windows/System32/bash.exe', '--login', '-c', '${CMD}']
|       shell.cmd: ['C:/Windows/System32/bash.exe', '--login', '-c', '${CMD}']
|    sh.bootstrap: 
|                > 	error building gosubl\sh-bootstrap.go: stat gosublsh-bootstrap.go: no such file or directory
|                > 
|                > 	error running bin\gosubl-sh-bootstrap.exe: /bin/bash: bingosubl-sh-bootstrap.exe: command not found
|                > 
|                > 	go version: `` (raw version string ``)
|                > 	shell bootstrap took 1.124s
|                > 

This comment has been minimized.


DisposaBoy commented Mar 24, 2018

I believe this specific issue can be fixed, but the rest of the code is just gonna call the go command directly and bring us back to square 1.

I plan to make the new version of margo run from inside of rkt, docker, etc. but there are no solid plans for that yet; maybe I can re-visit this when that happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment