Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build System - Sublime Text 3

I have the following script called "build-bat.sublime-build":

{
  "cmd": "build.bat",
  "working_dir": "$project_path",
  "windows" : {
      "shell": true
  }
}

The script is in C:\Users\MyName\AppData\Roaming\Sublime Text 3\Packages

I can select the script in Tools/Build Systems/build-bat and then I run it via CTRL+B or via manually selecting it in Tools/Build

It happens exactly nothing. I don't see anything, I don't get any errors.

It should run a file named: build.bat in the current directory where the file that I am working on is placed. But that doesn't happen.

Why?

like image 832
Simon S. Avatar asked Jun 17 '14 14:06

Simon S.


People also ask

How do I create a new build system in Sublime Text 3?

Sublime Text is able to run build programs such as 'make', either when a key in pressed (F7 by default), or when a file is saved. The build system to use can be select from the Tools/Build System menu. If a project is open, the selected build system will be remembered for the project.

What is build system in sublime?

Sublime Text provides build systems to allow users to run external programs. Examples of common uses for build systems include: compiling, transpiling, linting, and executing tests. Build systems are specified via JSON and saved in a file with the extension .sublime-build.

Where Are Sublime Text build systems?

Sublime populates its Tools/Build System menu based on the “. sublime-build” files stored in the Sublime “Packages” directory. Should one need to locate this, it can be found in “~/Library/Application Support/Sublime Text 2/Packages/User” (if using OS X) or the corresponding Packages/User directory on other platforms.


1 Answers

After adding a new build system to sublime text 3 you have to restart sublime text 3. After this the code above works.

like image 170
Simon S. Avatar answered Oct 13 '22 05:10

Simon S.