You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've opened this issue because some people have had very similar problems regarding livesync in an android development (the seed repo I'm using brings Angular2 and Typescript to the scene).
The build and emulation process works fine (Tested on Ubuntu 14.04 and Windows 7 with the same result). Whenever I make a change or add a file, all the watchers and tasks are working fine. If I touch an "html" or "tns" file livesync works as expected reloading and showing the edited file.
Except when I edit a "ts" or "js" file. The change is detected but just before the "Project succesfuly prepared" instance, I suddenly get this error:
"Unable to sync files. Error is: EISDIR: illegal operation on a directory, read"
After that, every change I make (even now whit "html" or "tns" files) it's working fine until "Project succesfuly prepared" shows again before the EISDIR finally takes over.
I've tried different environment configuration (from node 4.X to 6.X && npm 2 to 3.10) and operating systems.
This (and a bunch of other developers) is making us not to truly dive in in the Nativescript + Angular 2 world. Every change I make I have to restart the process all over again.
The framework is great and we want to use it intensively and to colaborate aside. I hope we can bring some insight as soon as possible so I don't force my self to use React (time is running out).
I leave here as much as information we gathered.
My actual environment
Windows 7 (sp1) 64 bits
Node: v5.6.0
npm: v3.10.6
Latest stable nativescript version
(Installed through Nativescript's offical tutorial)
This this the explicit error:
"Unable to sync files. Error is: EISDIR: illegal operation on a directory, read"
This is the output of --log trace during "tns livesync android --watch --emulate"
It could be related to this: #1810
and this: #1872
Thank you for building such a wonderful tool. I'm from Argentina and this is magic to me. I hope to dive in deeply as soon as possible. This is THE ONLY ONE error that is stopping us from code.
I'm experiencing the same problem with the angular2-seed-advanced, but on Linux.
From my log:
spawn: /home/mabs/tools/android/android-sdk-linux/platform-tools/adb "-s""emulator-5554""shell""chmod""0777""/data/local/tmp/dk.nota.lyt3/sync/assets"
Result when throw error is false:
{ stdout: 'chmod: /data/local/tmp/dk.nota.lyt3/sync/assets: No such file or directory\r\n',
stderr: '',
exitCode: 0 }
Unable to sync files. Error is: EISDIR: illegal operation on a directory, read
In the angular2-seed-advanced, the folders nativescript/app/app and nativescript/app/assets are symlinks to src/client/app and src/client/assets. "nativescript" being the base/root-folder for the nativescript part of the project.
I tried to use "mount -o bind src/client/app nativescript/app/app && mount -o bind src/client/assets nativescript/app/assets" and it seems to have solved the problem for me.
So it looks like the problem is caused by the symlinks, at least on Linux.
I'm running nativescript-cli v2.1 and nodejs 6.2.2
I've opened this issue because some people have had very similar problems regarding livesync in an android development (the seed repo I'm using brings Angular2 and Typescript to the scene).
The build and emulation process works fine (Tested on Ubuntu 14.04 and Windows 7 with the same result). Whenever I make a change or add a file, all the watchers and tasks are working fine. If I touch an "html" or "tns" file livesync works as expected reloading and showing the edited file.
Except when I edit a "ts" or "js" file. The change is detected but just before the "Project succesfuly prepared" instance, I suddenly get this error:
After that, every change I make (even now whit "html" or "tns" files) it's working fine until "Project succesfuly prepared" shows again before the EISDIR finally takes over.
I've tried different environment configuration (from node 4.X to 6.X && npm 2 to 3.10) and operating systems.
This (and a bunch of other developers) is making us not to truly dive in in the Nativescript + Angular 2 world. Every change I make I have to restart the process all over again.
We don't know if this a "nativescript" bug or a https://github.com/NathanWalker/angular2-seed-advanced one. This advanced seed from @NathanWalker is very useful to get up and running quickly with great technologies (NScript, NG2, NG/RX, TScript) and to start using Nativescript in depth.
The framework is great and we want to use it intensively and to colaborate aside. I hope we can bring some insight as soon as possible so I don't force my self to use React (time is running out).
I leave here as much as information we gathered.
My actual environment
Windows 7 (sp1) 64 bits
Node: v5.6.0
npm: v3.10.6
Latest stable nativescript version
(Installed through Nativescript's offical tutorial)
This this the explicit error:
This is the output of --log trace during "tns livesync android --watch --emulate"
log.txt
This is the last trace before the error is thrown (I've selected the first two "spawn" outputs. There is a lot of them showing differents paths.
This is the original seed issue
It could be related to this: #1810
and this: #1872
Thank you for building such a wonderful tool. I'm from Argentina and this is magic to me. I hope to dive in deeply as soon as possible. This is THE ONLY ONE error that is stopping us from code.
Cheers
@tsonevn @m-abs
The text was updated successfully, but these errors were encountered: