Sublime 2 文本 - 在保存 .js 文件期间构建 [英] Sublime 2 text - build during saving a .js file
问题描述
请问,当我尝试保存 .js 文件时,是否有一个选项,如何禁用自动构建?
Please, is there an option, how to disable auto-build, when i am trying to save a .js file?
我正在详细说明 node.js + express 教程,并且一直以来我都保存了文件,构建过程正在启动 node.exe 二进制文件,这是我不想要的东西,唯一的解决方案是勾选构建例如 JSLint 的系统,但它仍然会在我保存文件时尝试构建.
I was elaborating a node.js + express tutorial, and all the time I've saved the file, the build was starting the node.exe binary, what is something that i dont want, only solution was to tick the Build system for example for JSLint, but it still tries to build when I'm saving a file.
我知道工具中有一个勾选选项 -> 在构建时全部保存,但我找不到相反的选项 - 在保存时禁用全部构建.
I know there is an tick option in Tools -> Save all on Build, but i cant find the inverse option - disable Build all on save.
我已经为 Sublime 2 安装了 Node 包,即使它被禁用,构建系统 Nodejs 也会在保存过程中尝试构建 (ctrl+s)
I've installed the Node package for Sublime 2, and even when its disabled the build system Nodejs trys to build during the saving proces (ctrl+s)
感谢所有提示!
这是我的自定义用户包:
Here are my custom user packages:
"installed_packages":[镖","JavaScript 控制台","JavaScript 片段","JSLint",《摩卡跑者》,摩卡片段","节点","包裹控制","需要 Node.js 模块助手",崇高的jslint"],
"installed_packages": [ "Dart", "JavaScript Console", "JavaScript Snippets", "JSLint", "Mocha Runner", "Mocha Snippets", "Nodejs", "Package Control", "Require Node.js Modules Helper", "sublime-jslint" ],
推荐答案
这个问题是由 sublime text 2 的 nodejs 包引起的 - 在完全删除包后(不仅仅是禁用)我在尝试保存时收到错误消息应用程序.js
This problem was caused by the nodejs package for sublime text 2 - after removing the package completly (not just disabling) I got an error msg when trying to save the app.js
pressed CTRL+S 错误:尝试解析构建系统时出错:没有数据C:\用户\用户名\AppData\Roaming\Sublime Text2\Packages\Nodejs\Nodejs.sublime-build:1:1
pressed CTRL+S error: Error trying to parse build system: No data in C:\Users\username\AppData\Roaming\Sublime Text 2\Packages\Nodejs\Nodejs.sublime-build:1:1
问题解决了,但我还是不明白,为什么sublime保存app.js文件后直接调用nodejs.sublime-build.
Problem solved, but I still don't know, why sublime was calling nodejs.sublime-build direct after saving the app.js file.
奇怪的行为,可能是错误或不需要的功能(保存文件时,保存后直接调用预设构建系统)
Strange behavior, maybe a bug or a unwanted feature (When a file is saved, the pre-set build system is called direct after the save)
通过删除整个包解决了问题.
Problem solved by removing the whole package.
这篇关于Sublime 2 文本 - 在保存 .js 文件期间构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!