Invalid error on creating a file within a NativeScript project
See original GitHub issueHi @basarat Im receiving an error when I try to create a xml file with alm tool within a Nativescript project. I’m receiving this error everytime that I tried to create a simple xml file.
This is the error that Im seeing on alm tool console:
$ alm -o
DASHBOARD: http://localhost:4444
TSCONFIG: All Good! C:/NativeScriptRepo/atalaya/tsconfig.json
[TSC] Started Initial Error Analysis: C:/NativeScriptRepo/atalaya/tsconfig.json
[TSC] Error Analysis Duration: 3s
[TSC] FileCount: 115 Errors: 3
events.js:154
throw er; // Unhandled 'error' event
^
Error: EPERM: operation not permitted, lstat 'C:\NativeScriptRepo\atalaya\platforms\android\src\main\assets\app\tns_modules\tns-core-modules\ui\builder'
at Error (native)
ts worker restarting. Don't know why it stopped with code: 1
And I will paste here as well the error that Im seeing on the nativescript console to give you more information:
Found peer TypeScript 1.8.10
4:51:12 PM - Compilation complete. Watching for file changes.
Executing before-prepare hook from C:\NativeScriptRepo\atalaya\hooks\before-prepare\nativescript-dev-typescript.js
C:\NativeScriptRepo\atalaya\app\views\sample-view.xml has syntax errors.
error
invalid document source
@#[line:0,col:undefined]
Project successfully prepared
Transferring project files...
Successfully transferred all project files.
Applying changes...
Successfully synced application org.nativescript.atalaya on device 192.168.1.101:5555.
Executing before-prepare hook from C:\NativeScriptRepo\atalaya\hooks\before-prepare\nativescript-dev-typescript.js
C:\NativeScriptRepo\atalaya\app\views\sample-view.xml has syntax errors.
error
invalid document source
@#[line:0,col:undefined]
Project successfully prepared
Transferring project files...
Unable to sync files. Error is: EISDIR: illegal operation on a directory, read
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Error for invalid min runtime version in a plugin is misleading
Successfully prepared plugin nativescript-theme-core for android. Unable to apply changes on device: emulator-5554. Error is: Processing ...
Read more >Error when creating a nativescript Angular application ...
I recently got into Nativescript because i want to create a native mobile and web application with one code base.
Read more >Development Workflow - NativeScript Docs
Runs your project on all connected devices or in native emulators for the ... Error is: Invalid Version: null." error. ns run ios....
Read more >CLI Basics - NativeScript Docs
Learn the basics of the NativeScript CLI, including how to create, run, and debug NativeScript apps.
Read more >Advanced Concepts - NativeScript Docs
app.Activity implementations. Extending the Android Application #. Create a new TypeScript file in the root of your project folder - name it ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@basarat the same behavior is present on vscode so I think this is something on nativescript, about the error that we saw on the nativescript cli was because the xml file wasn’t valid as soon as I add valid xml code there the app run well (alm tool and vs code). Both did the same behavior on nativescript cli and both need to restart nativescript cli to make it work again.
Quick question: Does alm recover gracefully or you need to manually restart? If alm needs a manual restart to do its job we can reopen this bug and work towards figuring it out. If its just nativescript then this can remain closed 🌹