You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Aditi Hilbert (JIRA)" <ji...@apache.org> on 2016/10/12 00:30:20 UTC

[jira] [Created] (MYNEWT-436) "newt target" should spit out an error message when it encounters unexpected files while resolving targets

Aditi Hilbert created MYNEWT-436:
------------------------------------

             Summary: "newt target" should spit out an error message when it encounters unexpected files while resolving targets
                 Key: MYNEWT-436
                 URL: https://issues.apache.org/jira/browse/MYNEWT-436
             Project: Mynewt
          Issue Type: Improvement
          Components: Newt
            Reporter: Aditi Hilbert
            Assignee: Sterling Hughes


If an app is nested inside another app by mistake, newt does not complain but does not show any targets either. It should complain that something is amiss, something to the effect of "found unexpected files in apps".  

For example, I had blinky inside blinky by mistake (because of the current situation of having to manually clone the develop blinky repo):
aditihilbert@~/dev/myproj/apps/blinky$ ls
blinky	pkg.yml	src

aditihilbert@~/dev/myproj$ newt target show
aditihilbert@~/dev/myproj$

I remove blinky and newt target works ok.

aditihilbert@~/dev/myproj$ newt target show
targets/arduino_boot
    app=@apache-mynewt-core/apps/boot
    bsp=@mynewt_arduino_zero/hw/bsp/arduino_zero
    build_profile=optimized
targets/blinky_zero
    app=apps/blinky
    bsp=@mynewt_arduino_zero/hw/bsp/arduino_zero
    build_profile=debug
targets/my_blinky_sim
    app=apps/blinky
    bsp=@apache-mynewt-core/hw/bsp/native
    build_profile=debug







--
This message was sent by Atlassian JIRA
(v6.3.4#6332)