Sublime Forum

I am trying to change the build system using the "Edit Comma

#1

I am trying to change the build system using the “Edit Command Platte”. Everything I tried didn’t works.

Things I tried:

{ "caption": "Set Build System: Mocha", "command":"set_build_system", "args": {"file": "mocha.sublime-build"} },

{
        "caption": "Set Build System: Mocha",
        "command":"set_build_system", "args":  {"file": "mocha"}
    },

{
        "caption": "Set Build System: Mocha",
        "command":"set_build_system", "args":  {"file": "/C/Drive/software/sublime3/Data/Packages/User/mocha.sublime-build"}
    },

{
        "caption": "Set Build System: Mocha",
        "command":"set_build_system", "args":  {"file": "C:\\Drive\\software\\sublime3\\Data\\Packages\\User\\mocha.sublime-build"}
    },

It is important to note that the command “BUILD” works for me!!

{
//     // Name to show in Command Palette
    "caption": "Set Build Systm: Mocha",
    "command":"build", "args": {"file": "mocha"}
},
0 Likes

#2

I assume you are on a recent ST3 beta build? Build system selection has changed there a while ago.

I suggest running sublime.log_commands(True) in the console and then experimenting a bit with the default commands for building and build selection to see which commands are actually run.

0 Likes

#3

Wow!!!
a must use tip!

Thank you!

0 Likes