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

*Not* using margo extension: Error: cannot find package "margo" in any of #891

Open
xiaoke1989 opened this Issue Nov 29, 2018 · 6 comments

Comments

Projects
None yet
3 participants
@xiaoke1989

xiaoke1989 commented Nov 29, 2018

Not using margo extension: Error: cannot find package "margo" in any of
[16:12:05] margo: agent#007: log: go install -v -tags=margo margo.sh/cmd/margo.sublime
[16:12:07] margo: agent#007: log: C:\go\bin\margo.sublime.exe -codec msgpack
[16:12:09] margo: agent#007: log: store.go:137: started
[16:12:11] margo: agent#007: log: restart.go:145: Mg/Restart: exit status 1
[16:12:11] margo: agent#007: log: go install -v -tags=margo margo.sh/cmd/margo.sublime
[16:12:11] margo: agent#007: log: press ctrl+.,ctrl+x to configure margo or check console for errors
[16:12:11] margo: agent#007: log: Not using margo extension: Error: cannot find package "margo" in any of:
[16:12:11] margo: agent#007: log: C:\go\src\margo (from $GOROOT)
[16:12:11] margo: agent#007: log: D:\Program Files (x86)\Sublime Text Build\Data\Packages\User\GoSublime\src\margo (from $GOPATH)
[16:12:11] margo: agent#007: log: D:\Program Files (x86)\Sublime Text Build\Data\Packages\GoSublime\src\margo
[16:12:11] margo: agent#007: log: agent GOPATH is D:\Program Files (x86)\Sublime Text Build\Data\Packages\User\GoSublime;D:\Program Files (x86)\Sublime Text Build\Data\Packages\GoSublime

My Golang.sublime.setting is like this :
{
"env": {
"GOROOT":"C:\go",
"GOBIN":"C:\go\bin",
"GOPATH": "E:\go",
"GOARCH":"amd64",
"GOOS":"windows",
"PATH":"%GOBIN%;%PATH%"
},
"comp_lint_enabled": true,
"use_gs_gopath":true,
"comp_lint_commands": [
{"cmd": ["go", "install"]}
],

"on_save": [
    {"cmd":"gs_comp_lint"}   
]

}

How to resolve this problem?

@DisposaBoy

This comment has been minimized.

Owner

DisposaBoy commented Nov 29, 2018

Did you follow the instructions and press ctrl+.,ctrl+x?

@xiaoke1989

This comment has been minimized.

xiaoke1989 commented Nov 29, 2018

Did you follow the instructions and press ctrl+.,ctrl+x?

My submine press ctrl+.,ctrl+x can't open a window

@xiaoke1989

This comment has been minimized.

xiaoke1989 commented Nov 29, 2018

Did you follow the instructions and press ctrl+.,ctrl+x?

I try to change the Key Bindings to anothor one and opened the margo.go

@DisposaBoy

This comment has been minimized.

Owner

DisposaBoy commented Nov 29, 2018

My submine press ctrl+.,ctrl+x can't open a window

I'm not sure I understand. Are you saying the key binding doesn't do anything? You need to press ctrl+., then keep holding ctrl and press x.

In either case, the command is available via the Sublime Text command palette under the name GoSublime: Editor Margo Extension.

@justay

This comment has been minimized.

justay commented Dec 13, 2018

hi, I get the same problem.

[16:21:07] margo: agent#007: ['C:\\Users\\me\\AppData\\Roaming\\Sublime Text 3\\Packages\\GoSublime\\bin\\margo.sh.exe', 'start', 'margo.sublime', '-codec', 'msgpack']
[16:21:07] margo: agent#007: log: ``` go install -v -tags=margo margo.sh/cmd/margo.sublime ```
[16:21:08] margo: agent#007: log: ``` "C:\\Users\\me\\AppData\\Roaming\\Sublime Text 3\\Packages\\GoSublime\\bin\\margo.sublime.exe" -codec msgpack ```
[16:21:08] margo: agent#007: log: store.go:137: started
[16:21:08] margo: agent#007: log: restart.go:145: Mg/Restart: exit status 1
[16:21:08] margo: agent#007: log: ``` go install -v -tags=margo margo.sh/cmd/margo.sublime ```
[16:21:08] margo: agent#007: log: press ` ctrl+. `,` ctrl+x ` to configure margo or check console for errors
[16:21:08] margo: agent#007: log: *Not* using margo extension: Error: cannot find package "margo" in any of:
[16:21:08] margo: agent#007: log: 	C:\Go\src\margo (from $GOROOT)
[16:21:08] margo: agent#007: log: 	C:\Users\me\AppData\Roaming\Sublime Text 3\Packages\User\GoSublime\src\margo (from $GOPATH)
[16:21:08] margo: agent#007: log: 	C:\Users\me\AppData\Roaming\Sublime Text 3\Packages\GoSublime\src\margo

go version is 1.11.
running on windows 10

when i open margo.go , what should i do to fix the probelm?
thanks. bro.

@DisposaBoy

This comment has been minimized.

Owner

DisposaBoy commented Dec 13, 2018

@justay If you've followed the (admittedly poor) instructions on https://margo.sh/b/migrate/ you just need to save the file and margo should restart automatically.

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