Skip to content
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

LiveSync watch breaks when renaming a folder via macOS Finder #1339

Closed
vchimev opened this issue Dec 11, 2015 · 5 comments
Closed

LiveSync watch breaks when renaming a folder via macOS Finder #1339

vchimev opened this issue Dec 11, 2015 · 5 comments
Assignees

Comments

@vchimev
Copy link

vchimev commented Dec 11, 2015

Tested with {N} CLI 1.5.1 RC.

Steps to reproduce:

  • tns livesync android|ios --watch
  • delete a directory under the app folder
  • add a new file|folder into the app folder

It seems that after deleting a folder the watcher continues to watch for it.

Output:

Error: watch /Work/GitHub/nativescript-cli-tests/TNS_App/app/awef ENOENT
    at exports._errnoException (util.js:856:11)
    at FSWatcher.start (fs.js:1313:19)
    at Object.fs.watch (fs.js:1341:11)
    at Gaze._watchDir (/Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/gaze.js:289:30)
    at /Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/gaze.js:358:10
    at iterate (/Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/helper.js:52:5)
    at /Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/helper.js:61:11
    at /Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/gaze.js:420:5
    at iterate (/Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/helper.js:52:5)
    at /Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/helper.js:61:11
    at /Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/gaze.js:420:5
    at iterate (/Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/helper.js:52:5)
    at /Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/helper.js:61:11
    at /Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/gaze.js:420:5
    at iterate (/Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/helper.js:52:5)
    at /Work/GitHub/nativescript-cli-tests/node_modules/gaze/lib/helper.js:61:11
@teobugslayer
Copy link
Contributor

After consulting with @vchimev , this happened on OS X.

@rosen-vladimirov
Copy link
Contributor

It turns out this is bug in gaze module. Updating it should fix the issues.

@dtopuzov
Copy link
Contributor

dtopuzov commented Feb 17, 2016

Delete folder is fixed, create new folder is fixed, but rename is still not.

Steps to reproduce:
tns create TestApp
cd TestApp
tns livesync ios --emulator --watch
rename folder with OSX Finder

Infrastructure
OSX: El Capitan
Xcode 7.2
{N} 1.6.0

@dtopuzov dtopuzov modified the milestones: 1.7.0, 1.6.0 Feb 17, 2016
@rosen-vladimirov rosen-vladimirov modified the milestones: 1.6.1, 1.7.0 Feb 17, 2016
@teobugslayer teobugslayer modified the milestones: 1.6.2, 1.6.1 Feb 18, 2016
@dtopuzov dtopuzov modified the milestones: 1.7.0, 1.6.2 Mar 2, 2016
@rosen-vladimirov rosen-vladimirov modified the milestones: 2.0, 1.7.0 Mar 14, 2016
@rosen-vladimirov rosen-vladimirov modified the milestones: 2.1 (Under consideration), 2.0 Apr 18, 2016
@enchev
Copy link
Contributor

enchev commented May 30, 2016

Here is more info about the error: shama/gaze#202

@enchev enchev removed this from the 2.1 (Under consideration) milestone May 30, 2016
@enchev enchev added the wontfix label May 30, 2016
@enchev enchev closed this as completed May 30, 2016
@dtopuzov dtopuzov changed the title LiveSync watch breaks when deleting a folder and then adding a new file|folder LiveSync watch breaks when deleting a folder and then adding a new file|folder via macOS Finder Sep 9, 2016
@dtopuzov dtopuzov changed the title LiveSync watch breaks when deleting a folder and then adding a new file|folder via macOS Finder LiveSync watch breaks when renaming a folder via macOS Finder Sep 9, 2016
@pkoleva
Copy link
Contributor

pkoleva commented Sep 9, 2016

Issue is reproduced via command line as well
#1810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants