DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

How to install the latest GoSublime? #884

Closed dingrui37 closed 5 years ago

dingrui37 commented 5 years ago

Hi,all, I am want to use sublime text3 + gosublime for golang developing, but I have encontred some problems, but I have encountered some problems, can you give me help?

1)Install sublime text3 2 ) Install package control according to https://packagecontrol.io/installation#st3 3 ) Install gosublime, but it doesn't support now, so I follow the instructions below.

sublim1

DisposaBoy commented 5 years ago

@dingrui37 what problems are you having? The instructions and the error message says to press ctrl+., ctrl+x. Did you press that key binding?

lifangmoler commented 5 years ago

I am using Sublime build 3167, Can not find the GoSublime pacakge.

DisposaBoy commented 5 years ago

@lifangmoler Installation instructions are here https://github.com/DisposaBoy/GoSublime#installation--support

dingrui37 commented 5 years ago

@DisposaBoy Code completion function can not be used. image

DisposaBoy commented 5 years ago

@dingrui37

lifangmoler commented 5 years ago

@DisposaBoy I followed the instruction. i did not see the final step and no status bar shown up after i restarted the Sublime.

lifangmoler commented 5 years ago

I do not have GoSublime installed ( it is not available to find via install package) I cloned GoSublime into this folder: /Applications/Sublime Text.app/Contents/MacOS/Packages And then restarted the Sublime.

Anything wrong?

DisposaBoy commented 5 years ago

@lifangmoler Package Control is not supported. You need to install GoSublime with git clone (as you did).

That path looks incorrect. The editable packages directory is somewhere inside your home directory like /Users/<username>/Library.... You can find it via the Sublime Text menu Preferences > Browse Packages.

lifangmoler commented 5 years ago

@DisposaBoy But I did not see the final step with the error messages. But GoSublime looks working. Thanks

DisposaBoy commented 5 years ago

@lifangmoler If you're sure it's working, maybe you installed this branch some time in the past?

lifangmoler commented 5 years ago

GoSublime was working before. I got the error plugin_host has exited unexpectedly, plugin functionality won't be available until Sublime Text has been restarted. Then I tried to install the latest version Sublime and found the GoSublime is not available to Package Control to install anymore. I googled the issues online and tried to figure it out by myself before leaving messages here. So I may have installed the branch yesterday

DisposaBoy commented 5 years ago

@lifangmoler the plugin_host crash is probably related to this issue https://github.com/SublimeTextIssues/Core/issues/2327#issuecomment-425767504. It should be fixed now, but only in the paid/dev version of Sublime Text.

dingrui37 commented 5 years ago

@DisposaBoy I need to press 'ctrl + .' twice, what should I do next?

image

DisposaBoy commented 5 years ago

@dingrui37

From that command palette you can type Edit Margo Extension which will open the margo.go file. You then need to read everything in the file and change whatever settings you need, then save the file.


BTW: The correct thing to press was ctrl+.,ctrl+x

dingrui37 commented 5 years ago

Thanks @DisposaBoy