-
-
Notifications
You must be signed in to change notification settings - Fork 197
wrong message if you delete app's folder and run command with --path
in it
#4280
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
@miroslavaivanova @rosen-vladimirov I would like to take this up 👏 I'm new here and am not that aware of the code-base. It would be great if you could point me to the right files to work with 👍 |
Sorry for the late replay! In order to implement this you need to change this line https://github.com/NativeScript/nativescript-cli/blob/master/lib/commands/run.ts#L69.
After that you need to change canExecute function here:
After that you should change all occurrences of As the Feel free to write back if you need more information. |
Shows up an appropriate message while trying to run app in non-project directory
Thank you for the contribution! I merged your PR. If this is your first contribution to NativeScript, you are eligible for our NativeScript First-Time Contribution program. More info can be found here. We'll be more than glad to help you, if you'd like to fix another bug or implement some feature. |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
If you try to run app in non-project folder with
--path
in command without existing folder, you will see exception and you couldn't understand what is the problem.To Reproduce
tns create app
/folder/tns run ios --path app
Cannot read property 'targetedOS' of null
Expected behavior
correct error for non existing folder
The text was updated successfully, but these errors were encountered: