Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7825

cordova serve breaks silently when any platform's prepare step fails

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: cordova-serve
    • Labels:
      None

      Description

      $ cordova serve
      $

      totally unhelpful.

      for a in `cd platforms/; ls`; do cordova prepare $a > /dev/null 2> /dev/null || echo $a is broken; done
      android is broken

      Specifically, i'm using /tmp on OS X for my project, and /tmp self destructs, so prepare failed due to:

      Error: ENOENT, no such file or directory '/tmp/aa/platforms/android/res/values/strings.xml'

      Expected result:
      cordova serve should serve all working platforms and spit out a warning for broken platforms. If it can't serve any platforms, it should fail, and when it fails, there should be an error code returned to its caller.

        Attachments

          Activity

            People

            • Assignee:
              jsoref Josh Soref
              Reporter:
              jsoref Josh Soref

              Dates

              • Created:
                Updated:

                Issue deployment