Sublime Forum

Console Error on Build

#1

Hi,

When attempting to build using Ant, I receive the following error in the console: Unable to find target command: exec on windows 7

My build script lives in C:[other files and folders]\Sublime Text 2\Packages\User

{
    "cmd": "ant"],
    "working_dir": "${project_path:${folder}}",

    "windows":
    {
        "cmd": "ant.bat"]
    }
}

Is there something obvious I’m missing?

0 Likes

#2

exec is the default command for Build (defined in \Sublime Text 2\Packages\Default\exec.py)
There must be something really bad in your installation.

Others build system works (Python, …) ?

0 Likes

#3

No I get the same error message when trying to run any of the builds.

I’m on version 2181 and after looking through the console logs, it appears that the exec package has been loaded:

Reloading plugin C:\Sublime Text 2\Packages\Default\exec.py
0 Likes

#4

Maybe there is a problem with the content of the file exec.py ?
And usually packages directory is in your profile.
Do you use a portable version of ST2 ?

Try a fresh install (http://www.sublimetext.com/docs/2/revert.html)

0 Likes

#5

Thanks, I tried what you suggested and I can now get the build script to run. Do you know if it’s possible to get the sublime build script to wait for input. Our build script does something like the following:

Do you want to do [x] or Y? - Press Return to select option x

Do you want 1 or [2]

But I can’t find anything in the documentation for that.

0 Likes

#6

No, there’s no way to interact with the build system.
You must give options as parameter or simply use a shell script (.bat).

0 Likes