Sublime Forum

Build system bug in osx?

#1

Create a build system like this:

{
	"name": "bug build system",
	"osx": { "cmd": "echo", "main build command"]},

	"variants":
	
		{
			"name": "bug 1",
			"osx": {"cmd": "echo", "bug1"]}
		},
		{
			"name": "bug 2",
			"cmd": "echo", "bug2"]
		}
	]
}

The idea is that all the commands are for the specific platform, except for one, which is platform-independent.

Now open the command panel and type “bug1”, you will see “bug1” if you run it. However, if you run “bug2”, you will see the “main build command” instead. The same build system works well in Windows version.

The current fix is to add “osx” and “windows” sections to “bug2” command with the same commands. This works, but looks ugly :smile:

Hope this will be fixed one day.
Thanks!

0 Likes