Search code examples
node.jssublimetext2

Sublime 2 text - build during saving a .js file


Please, is there an option, how to disable auto-build, when i am trying to save a .js file?

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.

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)

thanks for all hints!

Here are my custom user packages:

"installed_packages": [ "Dart", "JavaScript Console", "JavaScript Snippets", "JSLint", "Mocha Runner", "Mocha Snippets", "Nodejs", "Package Control", "Require Node.js Modules Helper", "sublime-jslint" ],


Solution

  • 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 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

    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.