noseglid / atom-build

:hammer: Build your project directly from the Atom editor
https://atom.io/packages/build
MIT License
248 stars 97 forks source link

yml custom build command error #559

Closed aacirino closed 6 years ago

aacirino commented 6 years ago

Hi, experimenting with atom-build I wrote the following yml file:

cmd: ninja
name: build debug
cwd: "{PROJECT_PATH}/debug"
sh: false
targets:
  test:
    cmd: ninja
    args: test

When I try to execute the test target I get the following error:

Failed to build. target.args.map is not a function

If I try once more to run the test target I get this error:

Failed to build. Status 'Build: Custom: test' is already set

I can't see where the error is in yml file.

noseglid commented 6 years ago

args should be an array

cmd: ninja
name: build debug
cwd: "{PROJECT_PATH}/debug"
sh: false
targets:
  test:
    cmd: ninja
    args:
      - test