-
-
Notifications
You must be signed in to change notification settings - Fork 197
"tns debug {platform} --watch" inconvenient behavour #2292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@ivanbuhov @Plamen5kov @rosen-vladimirov Can we throw errors/output messages and terminate process when an app bundle is not available instead of implicitly triggering a build? How do you think that would affect the user experience? Currently some of the CLI commands and flag combinations act unpredictably, and that can cause frustration for the users. At the very least we can do is to write an elaborate list of all commands, valid flags for each, and expected behavior, along with listing of quirks, if any. |
@Pip3r4o
|
@ivanbuhov I agree on the above, I was referring more to the |
@Pip3r4o I also agree that |
Actually the current implementation of |
This reverts commit c432780.
tns debug ios --no-rebuild --watch
doesn't build the app (as expected). If--no-rebuild
argument is dropped still no build is triggered. In both cases if the app was not previously built (there is no app bundle in the platform's build directory) the command will fail withENOENT: no such file or directory, scandir '/Users/buhov/Desktop/TheApp/platforms/ios/build/emulator
.This means that the command will always fail in a brand new or newly cloned application:
Additionally, this command is run by the VSCode extension when the
Sync on iOS/Android
operation is triggered. In the extension we can "predict" whether the command will fail and trigger a build in such case, but this is a workaround. The real solution should be to trigger build in the CLI if the app hasn't been previously built. If triggering a build when--no-rebuild
is explicitly set looks strange to someone, we can at least trigger a build ontns debug ios --watch
. As a result the following scenario should not fail with error:Any ideas are welcome.
The text was updated successfully, but these errors were encountered: