9

As the title says.
The linter doesnt seem to work at all for me in Windows. I have tried it with javascript and php files with the correct syntax set.
Im following Jeffery Ways tutorial here -> https://tutsplus.com/lesson/sublime-linter/

I have installed package control, SublimeLinter and nothing, removed it installed sublimelinter beta and nothing too.

Any help please

4

3 回答 3

9

来自SublimeLinter 的 github 页面

“如果您打算编辑使用基于 Javascript 的 linter(Javascript、CSS)的文件,您的系统必须安装 Javascript 引擎……在 Windows 上,您必须安装 Javascript 引擎 Node.js,它可以从Node.js 网站。”

节点.js

像普通的 Windows 应用程序一样安装它。关闭 Sublime 并重新启动。棉绒应该起作用。

于 2013-01-15T02:02:33.370 回答
3

您需要将 SublimeLinter 指向 SublimeLinter.sublime-settings 中的 PHP 可执行文件。

更改此选项:

"sublimelinter_executable_map":
{
    "php": "C:\\wamp\\bin\\php\\php5.3.13\\php.exe"
},

编辑:

请参阅此链接以获取更多帮助

http://fuzzytolerance.info/blog/2012/05/14/2012-05-15-getting-sublimelinter-running-on-windows/

于 2013-09-13T02:46:16.890 回答
1

为了获得 SublimeLint linting js 文件,我必须按照此处的说明安装这个附加插件:

(我不需要遵循“Linter 配置”步骤)

https://github.com/SublimeLinter/SublimeLinter-jshint#linter-installation

于 2015-02-10T02:01:16.070 回答