Open Timer00 opened 7 years ago
Had the same working from a NAS station. Best thing is to work locally for now I guess. Maybe it's fixed in the new version 7.1.1 (npm i -g phonegap
) but I'm not sure.
Still not fixed in 7.1.1
The issue is somehow caused by the IDE you are using.
If it's PHPStorm (like what I'm using right now), you can disable the "Safe Write"
setting to avoid this error.
Software Version
Phonegap CLI: 7.0.1 Node: 8.5.0 NPM: 5.3.0
Expected Behaviour
Saving a file on computer at any disk should update the PhoneGap Developer app on phone.
Actual Behaviour
The CLI will throw an error or will crash if you change and save a file in the www directory at D:\ . If the server is restarted the changes are delivered succesfully to the App. The same attempt on C:\ works without any problems.
Steps to Reproduce
Run phonegap serve start phonegap developer app on your smartphone (i used an android device) change and save a file an error will be thrown Error messages
Error messages:
Error without crash:
[phonegap] file changed D:\A\B\C\D\F\G\H\myApp\www\index.html_jb_tmp__ [phonegap] file changed D:\A\B\C\D\F\G\H\myApp\www\index.html [phonegap] file changed D:\A\B\C\D\F\G\H\myApp\www\index.htmljb_tmp Error, could not complete to zip up the app: Error: ENOENT: no such file or directory, open 'D:\A\B\C\D\F\G\H\myApp\www\index.htmljb_tmp___'
Error with crash:
[phonegap] file changed D:\A\B\C\D\F\G\H\myApp\www\index.html_jb_tmp__ [phonegap] file changed D:\A\B\C\D\F\G\H\myApp\www\index.html [phonegap] file changed D:\A\B\C\D\F\G\H\myApp\www\index.htmljb_tmp There was an unhandled exception within phonegap-cli! If you would like to help the PhoneGap project, please file the following details over at https://github.com/phonegap/phonegap-cli/issues Error: ENOENT: no such file or directory, open 'D:\A\B\C\D\F\G\H\myApp\www\index.htmljb_tmp___'
Additional Notes
The source of this problem seems to be the same from issues #741 and #543 .