Skip to content

tns livesync android --emulator --watch fails when create new folder #1810

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

Closed
tsonevn opened this issue Jun 7, 2016 · 8 comments
Closed
Assignees
Milestone

Comments

@tsonevn
Copy link
Contributor

tsonevn commented Jun 7, 2016

From @georgeedwards on June 6, 2016 17:2

Tell us about the problem

When using livesync on windows, if you save files before the last compilation has completed then I get the error:

Unable to sync files. Error is: EISDIR: illegal operation on a directory, read

It doesn't go away with subsequent file change events. However, killing and restarting the livesync works great.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

-CLI: 2.0.1
-Cross-platform modules: 2.0.1
-Runtime(s): 2.0.0 (android)

Please tell us how to recreate the issue in as much detail as possible.

I am running Windows 10, then edit two files in the sample groceries, save the first one and then save the second one (very soon after), this creates it for me.

Copied from original issue: NativeScript/NativeScript#2257

@tsonevn tsonevn self-assigned this Jun 7, 2016
@tsonevn
Copy link
Contributor Author

tsonevn commented Jun 7, 2016

Hi @georgeedwards ,

Thank you for reporting your problem.
I reviewed your case however I was unable to reproduce the issue. Could you give me more info about this problem.
It would help if you could give me a a sample project, which recreates the problem.

Regards,
@tsonevn

@tsonevn
Copy link
Contributor Author

tsonevn commented Jun 7, 2016

From @Metalmate on June 7, 2016 13:25

Hello,

I can reproduce the error, but not the way you described. When livesync --watch is running and you create a new folder in the directory from where the command is running, a.k.a. you livesync a project, and somewhere in that project you create a new directory, this error shows up.

I guess you might have created a directory, or some other program did. Can you reproduce the problem and make sure no directory was created in the process?

CLI: 2.0
OS: Ubuntu 16.04
Android: 2.0.0

@tsonevn
Copy link
Contributor Author

tsonevn commented Jun 7, 2016

Hi @Metalmate,
Thank you for the reply

I confirm that this is an real issue for android projects, when you are using tns livesync android --emulator --watch and make new folder in a project while livesync is running.

Regards,
@tsonevn

@georgeedwards
Copy link

@Metalmate @tsonevn Yes, that does seem to be the behaviour that causes the issue!

@Bohmaster
Copy link

Bohmaster commented Jul 2, 2016

start.livesync.android "Unable to sync files. Error is: EISDIR: illegal operation on a directory, read"

I'm getting this error EVERY time a file changes.

NathanWalker/angular-seed-advanced#148

@m-abs
Copy link

m-abs commented Jul 2, 2016

start.livescript.android is a task in angular2-seed-advanced that runs "tns livesync android --emulator --watch"

I'm experiencing the same problem as @Bohmaster does, I'm on Linux (Ubuntu and Fedora) but I'm still on tns v2.0.1 (v2.1 breaks something in angular2-seed-advanced for me).

@Bohmaster
Copy link

I've tried on Windows and have had the same result.

@Bohmaster
Copy link

Bohmaster commented Jul 3, 2016

I leave here the output of:

"tns livesync android --emulator --watch --log trace"

log.txt

I've noticed this error just before EISDIR appears

**Project successfully prepared
AfterHookName for command prepare is after-prepare**

spawn: C:\Users\voidhmaster\AppData\Local\Android\android-sdk\platform-tools\adb "-s" "192.168.155.101:5555" "shell" "ls" "-l" "/data/local/tmp"
Result when throw error is false:
{ stdout: 'drwxrwxrwx root     root              2016-07-03 02:29 com.yourdomain.appname\r\r\n',
  stderr: '',
  exitCode: 0 }
spawn: C:\Users\voidhmaster\AppData\Local\Android\android-sdk\platform-tools\adb "-s" "192.168.155.101:5555" "shell" "rm" "-rf" "/data/local/tmp/com.yourdomain.appname/fullsync" "/data/local/tmp/com.yourdomain.appname/sync" "/data/local/tmp/com.yourdomain.appname/removedsync"
Result when throw error is false:
{ stdout: '', stderr: '', exitCode: 0 }

I've only pasted 2 examples. I get this error a lot of times with different directories.

@tsonevn @m-abs

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

8 participants