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

After v4 upgrade : Error is: cp: copyFileSync: could not write to dest file (code=EPERM) #3630

Closed
RoyiNamir opened this issue May 29, 2018 · 7 comments
Labels
bug build Describes issues related to build operations livesync run Describes issues related to run command
Milestone

Comments

@RoyiNamir
Copy link

RoyiNamir commented May 29, 2018

This problem returned on TNS 4.

Look at this screen where my app is On :

image

Now let's change something in the code

image

See error :

image

It didn't happen before in v 3
Files ( origin files , )are read only due to TFS. But it did work before v4.

complete package.json :

https://gist.github.com/RoyiNamir/c7adb7454b075369b0d325b88575f374

complete error :

10:12:43 - File change detected. Starting incremental compilation...



10:12:44 - Compilation complete. Watching for file changes.



Executing before-prepare hook from C:\projects-web-storm\digital\dsapp1\hooks\before-prepare\nativescript-dev-sass.js
Hook skipped because either bundling or livesync is in progress.
Executing before-prepare hook from C:\projects-web-storm\digital\dsapp1\hooks\before-prepare\nativescript-dev-typescript.js
Hook skipped because either bundling or livesync is in progress.
Executing before-prepare hook from C:\projects-web-storm\digital\dsapp1\hooks\before-prepare\nativescript-plugin-firebase.js
Preparing project...
Executing before-prepareJSApp hook from C:\projects-web-storm\digital\dsapp1\hooks\before-prepareJSApp\nativescript-dev-webpack.js
Unable to apply changes for device: 192.168.104.101:5555. Error is: cp: copyFileSync: could not write to dest file (code=EPERM):C:/projects-web-storm/digital/dsapp1/platforms/android/app/src/main/assets/app/app.module.ngfactory.d.ts.
Executing after-watch hook from C:\projects-web-storm\digital\dsapp1\hooks\after-watch\nativescript-dev-sass.js
Stopping nativescript-dev-sass watcher
Executing after-watch hook from C:\projects-web-storm\digital\dsapp1\hooks\after-watch\nativescript-dev-typescript.js
Stopping tsc watch

Platform remove/add already been committed + full manual delete
Permission : everyone full control
Again - it didnt happen before
in v 4 we had to check out for edit (which remove read only flag) only : App_resources & Hooks & package.json

But now , we have to check out the WHOLE project.

@dtopuzov
Copy link
Contributor

dtopuzov commented Jun 8, 2018

Hi @RoyiNamir

Can you please try with nativescript@4.1.0, nativescript-dev-sass@1.6.0 (and eventually nativescript-dev-typescript@0.7.1)?
We did some fixes for livesync issue on those places.

@RoyiNamir
Copy link
Author

RoyiNamir commented Jun 28, 2018

Hi @dtopuzov - this is what I did :

C:\Users\sff\Desktop\delme1\ddd\app>attrib +r /s
C:\Users\sff\Desktop\delme1\ddd\app>tns run android

And got this still :

image

I want to mention that I work with all most latest versions - with a simple clean tns create aaa --ng proj :

Package.json

If you need further details , please reply.
(windows 10).

@ghost
Copy link

ghost commented Jul 9, 2018

I am getting same issue, any update on this.
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN ",
"readme": "NativeScript Application",
"repository": "",
"nativescript": {
"id": "org.something.topi",
"tns-android": {
"version": "4.1.3"
}
},
"dependencies": {
"base-64": "^0.1.0",
"nativescript-cardview": "^2.0.2",
"nativescript-clipboard": "^1.1.7",
"nativescript-dom": "^2.0.0",
"nativescript-gif": "^2.0.0",
"nativescript-google-plus": "file:C:\Users\citrix\Downloads\Takhat Server Files\report 22-25\nativescript-google-plus-master\nativescript-google-plus-master",
"nativescript-loading-indicator": "^2.3.2",
"nativescript-localstorage": "^1.1.5",
"nativescript-permissions": "^1.2.3",
"nativescript-secure-storage": "^2.2.0",
"nativescript-sms-inbox": "^1.0.7",
"nativescript-social-share": "^1.5.0",
"nativescript-sqlite": "^2.2.1",
"nativescript-theme-core": "~1.0.2",
"nativescript-timedatepicker": "^1.2.0",
"nativescript-toast": "^1.4.6",
"nativescript-webview-interface": "^1.4.1",
"tns-core-modules": "^4.1.0",
"utf8": "^2.1.2"
},
"devDependencies": {
"babel-traverse": "6.4.5",
"babel-types": "6.4.5",
"babylon": "6.4.5",
"lazy": "1.0.11"
}
}

@RoyiNamir
Copy link
Author

RoyiNamir commented Jul 15, 2018

@dtopuzov
It's also happens in another variation when running tns run android ( after a checked-in )

image

@RoyiNamir
Copy link
Author

@dtopuzov Any news on this one ?
It causes us to checkout ALL our files project ( each "checking" and "get latest"). it's impossible to work with TFS with NS as TFS makes all files read only.
We don't have problem to remove read only from platforms. but every checking we checkout ALL files and checkin ALL files.
it's very frustrating to work like this.
Is there any future release that will fix this ?

@brendanalexdr
Copy link

Just installed Sidekick. Trying to do my first "HelloWorld" build (for android). Am getting this error. Am not having any luck finding a fix/resolution

@rosen-vladimirov rosen-vladimirov added this to the 6.0.0 milestone May 22, 2019
@rosen-vladimirov rosen-vladimirov added build Describes issues related to build operations run Describes issues related to run command labels May 22, 2019
@rosen-vladimirov
Copy link
Contributor

rosen-vladimirov commented May 23, 2019

Related to: #3028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build Describes issues related to build operations livesync run Describes issues related to run command
Projects
None yet
Development

No branches or pull requests

5 participants