官方的安装方法我就不多说了,只是怕哪天天朝又封锁个啥,网页无法打开,所以备份一下
(OPTION 1) VIA SUBLIME TEXT PACKAGE CONTROL (RECOMMENDED)
Sublime Text Package Control must be installed: https://sublime.wbond.net/installation
- Open Sublime Text 3 (Sublime Text 2 no longer supported)
- Run
Package Control: Install Package
command - Search for
MavensMate
- Hit
Enter
说说我的问题吧,公司的电脑不让下载,客户的电脑无安装权限,于是我下载了portable 版本的Sublime Text 3。所有插件都装完了之后,无法new project。
我看了一下log,错误信息如下:
[MAVENSMATE]: response from mm: {"body": "Please set mm_workspace to the location where you'd like your mavensmate projects to reside", "stack_trace": "Traceback (most recent call last):\n File \"C:\\Users\\Administrator\\Desktop\\ghook\\build\\mm\\out00-PYZ.pyz\\mm.request\", line 69, in execute\n File \"C:\\Users\\Administrator\\Desktop\\ghook\\build\\mm\\out00-PYZ.pyz\\mm.request\", line 60, in __setup_connection\n File \"C:\\Users\\Administrator\\Desktop\\ghook\\build\\mm\\out00-PYZ.pyz\\mm.connection\", line 47, in __init__\n File \"C:\\Users\\Administrator\\Desktop\\ghook\\build\\mm\\out00-PYZ.pyz\\mm.connection\", line 151, in get_workspace\nMMException: Please set mm_workspace to the location where you'd like your mavensmate projects to reside\n", "success": false}
首先我的mm_workspace已经指定了,默认浏览器也设置成chrome了,但是这里的路径在我的电脑上根本就没有。
在网上找到一位能人提供的方法,sublime Text默认是从%APPDATA%来打开程序的。所以只要想办法在%APPDATA%加上sublime Text就OK了
open windows command prompt, then cd %APPDATA%, then use mklink as follows:
C:\Users\mywindowslogin\AppData\Roaming > mklink /J "Sublime Text 3" "C:\Users\Public\Public Apps\SublimeText\Data"
红色部分换成自己的sublime 对应的路径,就万事大吉了。