Get the App
SLTechnology News&Howtos  ›  Development  › 

What if the plug-in gosublime is not found when Sublime Text3 installs it?

Shulou Source: shulou.com Published: 2022-06-02 04:06:28 11月12日 Update

This article introduces the relevant knowledge of "what to do when Sublime Text3 installs the plug-in gosublime". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

When building the golang development environment under windows (there are many specific steps online, Baidu can find it by searching the text in front of parentheses), it encountered a very awkward situation (as shown below), and Baidu did not find a similar situation.

Solution (3 steps in total): (this is also the process of manually installing plug-ins)

Step one:

From the toolbar-Preferences----, you can see the Browse Package (the first one is). After opening it, you will find the plug-in installation path, such as:

C:\ Users.AppData\ Roaming\ Sublime Text 3\ Packages

(if you have git, you can use this "simplified method" instead of steps 2 and 3-"under the path where Browse Package is open, open git bash, execute" git clone https://github.com/DisposaBoy/GoSublime.git", and then restart "- if there is no git, just press steps 2 and 3. )

Step 2:

Open the web page https://github.com/DisposaBoy/GoSublime and download the zip package of gosublime. Since github is relatively slow, the local download address is provided here and decompressed to the path in the previous step.

Step 3:

The name of the extracted file is changed to GoSublime (note that you need to download the zip of the master branch, the name of the downloaded file is GoSublime-master.zip, and the original name of the decompressed file is GoSublime-master)

Finally, restart sublime, and the problem on my own computer is solved, showing that the sublime plug-in has been successfully installed:

PS: the installation has been completed here. If you want to use it in an advanced way-run the code in the console called up by ctrl + B, you also need to configure the margo file:

1 find the GoSublime/src directory under the path where Browse Package is opened, and create a new margo directory in it

2 copy the file GoSublime/src/margo.sh/extension-example/extension/extension-example.go to the newly created directory margo. And renamed it margo.go.

If you do not do these two steps, executing commands such as go build with gosublime will report an error:

Actions: RunCmd, error: margo has not started after 0.200sPS2: after installing gosublime successfully, you can press the ctrl+ point and the ctrl+ point, and all the functions of the gosublime plug-in will be displayed. "ctrl+ point, ctrl+ point" means to press twice in a row. Many shortcut keys in gosublime need to press double keys.

This is the end of the content of "what to do if you can't find it when you install the plug-in gosublime in Sublime Text3". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Plug-ins files paths situations directories what to do success content name more knowledge process utility embarrassment achievement next middle code branch method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft macOS Shulou Information NVidia MariaDB