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

Margo.exe is missing #897

Open
soenderg opened this Issue Dec 18, 2018 · 14 comments

Comments

Projects
None yet
2 participants
@soenderg
Copy link

soenderg commented Dec 18, 2018

I just installed GoSublime (by git clone in Package dir) and I can't seem to get margo starting.
I'm using ST3 Build 3184 on a Mac running OSX 10.14.1 (Mojave).
I've tried setting an unsetting GOROOT, GOPATH and GOBIN to no avail.
My sanity check looks like this:
`GoSublime Sanity Check

| install state:
| sublime.version: 3184
| sublime.channel: dev
| about.ann: a18.11.28-1
| about.version: r18.11.28-1
| version: r18.11.28-1
| platform: osx-x64
| ~bin: ~/Library/Application Support/Sublime Text 3/Packages/User/GoSublime/osx-x64/bin
| margo.exe: ~bin/gosublime.margo_r18.11.28-1_go?.exe (missing)
| go.exe: /usr/local/bin/go (ok)
| go.version: go?
| GOROOT: (not set)
| GOPATH: ~/work_xenial/one.com-systems-api
| GOBIN: /usr/local/Cellar/go/1.11.4/bin/go
| set.shell: []
| env.shell: /bin/bash
| shell.cmd: ['/bin/bash', '-l', '-c', '${CMD}']
| sh.bootstrap:
| >
| >
| error log: `

And things that should be handled by gofmt does not change when I use cmd+. and cmd+f

Any pointers?

@DisposaBoy

This comment has been minimized.

Copy link
Owner

DisposaBoy commented Dec 18, 2018

  • What's the output of go env GOROOT and go version?

  • Is there any other error output in the Sublime Text console at startup?

@soenderg

This comment has been minimized.

Copy link

soenderg commented Dec 18, 2018

@DisposaBoy

This comment has been minimized.

Copy link
Owner

DisposaBoy commented Dec 18, 2018

That console output is incomplete. You can remove irrelevant lines if it's too long. GoSublime logs have lines containing the words GoSublime and/or margo.

@soenderg

This comment has been minimized.

Copy link

soenderg commented Dec 18, 2018

@DisposaBoy

This comment has been minimized.

Copy link
Owner

DisposaBoy commented Dec 18, 2018

It's definitely incomplete for some reason.

The output should contain lines like GoSublime r18.11.28-1: _after.init() and GoSublime init r18.11.28-1 .

Did you restart (cmd+q) Sublime Text?

@soenderg

This comment has been minimized.

Copy link

soenderg commented Dec 18, 2018

@DisposaBoy

This comment has been minimized.

Copy link
Owner

DisposaBoy commented Dec 18, 2018

Are you waiting until the error message is shown?
Maybe the output is getting truncated when you post it in a comment here on Github?

@soenderg

This comment has been minimized.

Copy link

soenderg commented Dec 18, 2018

@DisposaBoy

This comment has been minimized.

Copy link
Owner

DisposaBoy commented Dec 18, 2018

That's strange...

Can you edit Packages/GoSublime/gosubl/sh.py and replace line 214 cr = run(bs_exe) with the code below then restart Sublime Text?

cr = run(bs_exe)
raise Exception('cr.exc=`{}`\ncr.err=`{}`\ncr.out=`{}`'.format(cr.exc, cr.err, cr.out))

When Sublime Text starts, you should now see an exception thrown after the GoSublime r18.11.28-1: sh.init() line.

@soenderg

This comment has been minimized.

Copy link

soenderg commented Dec 18, 2018

@DisposaBoy

This comment has been minimized.

Copy link
Owner

DisposaBoy commented Dec 18, 2018

It looks like the command never returns. Does running go build -o bin/gosubl-sh-bootstrap.exe gosubl/sh-bootstrap.go manually from inside Packages/GoSublime work?

@soenderg

This comment has been minimized.

Copy link

soenderg commented Dec 18, 2018

@DisposaBoy

This comment has been minimized.

Copy link
Owner

DisposaBoy commented Dec 18, 2018

Maybe it's something to do with the Python environment... maybe try downgrading to an earlier version of Sublime Text to confirm.

Does running the following from the Subliime Text console work?

from GoSublime.gosubl.sh import ShellCommand, Command; ShellCommand('go version').run(); Command(['go', 'version']).run()
@soenderg

This comment has been minimized.

Copy link

soenderg commented Dec 18, 2018

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