NativeScript / NativeScript/nativescript-cli

Nativescript 8 Livesync doesn't work. Have a log "isFullSync: false"

Đang mở
#5,533 2 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

I have a problem with Nativescript 8 Angular, when i run my application on two devices, and save some changes inside my code, Livesync stop working after few saved changes in my code. My application doesn't refreshing after saved code.

here is my --log trace

Entrypoint bundle 21.7 MiB = vendor.js 20.6 MiB bundle.js 1.05 MiB bundle.02d8023ddab26dae76ac.hot-update.js 33.6 KiB
cached modules 8.1 MiB [cached] 862 modules
runtime modules 25.2 KiB 15 modules
javascript modules 120 KiB
modules by path ./src/app/shared/components/ 25.3 KiB 5 modules
modules by path ./src/app/*.ts 4.78 KiB
./src/app/app.module.ts 3.03 KiB [built]
./src/app/app.component.ts 1.75 KiB [built]
./src/main.ts 3.55 KiB [built]
./src/app/component_for_test_nat/component_for_test_nat.component.ts 16.5 KiB [built]
./src/app/component_for_test_nat_petr/component_for_test_nat_petr.component.ts 9.79 KiB [built] [code generated]
./src/app/test/test.component.ts 31.2 KiB [built]
./src/app/layout/layout.component.ts 16.5 KiB [built]
./src/app/charts/charts.component.ts 12 KiB [built]
webpack 5.31.2 compiled successfully in 4762 ms
Webpack compilation complete. Watching for file changes.
[WatchStatePlugin] Notify: {
type: 'compilation',
version: 1,
hash: 'ff9b929fb1cabd760d4e',
data: {
emittedAssets: [ 'bundle.js' ],
staleAssets: [
'bundle.eac3aad64367307bb7de.hot-update.js',
'bundle.eac3aad64367307bb7de.hot-update.json'
]
}
}
Message from webpack {
type: 'compilation',
version: 1,
hash: 'ff9b929fb1cabd760d4e',
data: {
emittedAssets: [ 'bundle.js' ],
staleAssets: [
'bundle.eac3aad64367307bb7de.hot-update.js',
'bundle.eac3aad64367307bb7de.hot-update.json'
]
}
}
Received message from webpack process: {
type: 'compilation',
version: 1,
hash: 'ff9b929fb1cabd760d4e',
data: {
emittedAssets: [ 'bundle.js' ],
staleAssets: [
'bundle.eac3aad64367307bb7de.hot-update.js',
'bundle.eac3aad64367307bb7de.hot-update.json'
]
}
}
Webpack build done!
Try executing watch action without any preparation of files.
Will execute livesync for files: [
'C:\Users\Public\Artfront\art-native\platforms\android\app\src\main\assets\app\bundle.js'
]
spawn: C:\Android\android-sdk\platform-tools\adb "-s" "emulator-5556" "shell" "ls" "/data/local/tmp/org.nativescript.artnative2/hashes"
Result when throw error is false:
{
stdout: '/data/local/tmp/org.nativescript.artnative2/hashes\r\n',
stderr: '',
exitCode: 0
}
Shasum of file C:\Users\Public\Artfront\art-native\platforms\android\app\src\main\assets\app\bundle.js is de744eb7a6562a7d7252f874f8092bb71730a505
Files to transfer: [
LocalToDevicePathData {
filePath: 'C:\Users\Public\Artfront\art-native\platforms\android\app\src\main\assets\app\bundle.js',
localProjectRootPath: 'C:\Users\Public\Artfront\art-native\platforms\android\app\src\main\assets\app',
onDeviceFileName: 'bundle.js',
deviceProjectRootPath: '/data/local/tmp/org.nativescript.artnative2/sync'
}
]
spawn: C:\Android\android-sdk\platform-tools\adb "-s" "emulator-5556" "shell" "mkdir" "-p" "/data/local/tmp/org.nativescript.artnative2"
Result when throw error is false:
{ stdout: '', stderr: '', exitCode: 0 }
spawn: C:\Android\android-sdk\platform-tools\adb "-s" "emulator-5556" "push" "C:\Users\Artuser\AppData\Local\Temp\android-device-hash-service-org.nativescript.artnative22021426-6812-10ocvum.b4tm\hashes" "/data/local/tmp/org.nativescript.artnative2/hashes"
Result when throw error is false:
{
stdout: 'C:\Users\Artuser\AppData\Local\Temp\android-device-hash-service-org.nativescript.artnative22021426-6812-10ocvum.b4tm\hashes: 1 file pushed, 0 skipped. 0.0 MB/s (150 bytes in 0.013s)\r\n',
stderr: '',
exitCode: 0
}
spawn: C:\Android\android-sdk\platform-tools\adb "-s" "emulator-5556" "shell" "chmod" "0777" "/data/local/tmp/org.nativescript.artnative2"
Result when throw error is false:
{ stdout: '', stderr: '', exitCode: 0 }
Successfully transferred bundle.js on device emulator-5556.
spawn: C:\Android\android-sdk\platform-tools\adb "-s" "emulator-5556" "shell" "rm" "-rf" "/data/local/tmp/org.nativescript.artnative2-livesync-in-progress"
JS: [HMR][Verbose] LiveSync
Result when throw error is false:
{ stdout: '', stderr: '', exitCode: 0 }
Refreshing application on device emulator-5556...
Will emit event runOnDeviceExecuted with data {
projectDir: 'C:\Users\Public\Artfront\art-native',
deviceIdentifier: 'emulator-5556',
applicationIdentifier: 'org.nativescript.artnative2',
syncedFiles: [
'C:\Users\Public\Artfront\art-native\platforms\android\app\src\main\assets\app\bundle.js'
],
isFullSync: false
}
Successfully synced application org.nativescript.artnative2 on device emulator-5556.
Successfully executed watch action without any preparation of files.

As you see, process stoped at line Successfully executed watch action without any preparation of files.

Here my package.json

"dependencies": {
"@angular/animations": "~11.2.7",
"@angular/common": "~11.2.7",
"@angular/compiler": "~11.2.7",
"@angular/core": "~11.2.7",
"@angular/forms": "~11.2.7",
"@angular/platform-browser": "~11.2.7",
"@angular/platform-browser-dynamic": "~11.2.7",
"@angular/router": "~11.2.7",
"@nativescript/angular": "~11.8.0",
"@nativescript/background-http": "^5.0.2",
"@nativescript/camera": "^5.0.8",
"@nativescript/core": "^8.0.6",
"@nativescript/datetimepicker": "^2.1.3",
"@nativescript/fingerprint-auth": "^7.0.0",
"@nativescript/imagepicker": "^1.0.4",
"@nativescript/local-notifications": "^5.0.3",
"@nativescript/theme": "~3.0.1",
"@nativescript/ui-charts": "^0.1.0",
"@nstudio/nativescript-checkbox": "^2.0.4",
"@nstudio/nativescript-pulltorefresh": "^3.0.1",
"moment": "^2.29.1",
"nativescript": "^8.0.2",
"nativescript-barcodescanner": "^4.1.1",
"nativescript-carousel": "^7.0.1",
"nativescript-clipboard": "^2.1.1",
"nativescript-feedback": "^2.0.0",
"nativescript-localstorage": "^2.0.2",
"nativescript-permissions": "^1.3.11",
"nativescript-ui-calendar": "^7.0.2",
"nativescript-ui-chart": "^8.0.2",
"reflect-metadata": "~0.1.13",
"rxjs": "~6.6.7",
"save": "^2.4.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular/compiler-cli": "~11.2.7",
"@nativescript/android": "8.0.0",
"@nativescript/types": "~8.0.0",
"@nativescript/webpack": "beta",
"@ngtools/webpack": "~11.2.6",
"typescript": "~4.0.0"
}

Could somebody helps me with my question ?
It is really important for me now

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với hành động watch của CLI và các phiên bản trong package.json, sau đó tái hiện lỗi khi lưu các thay đổi trong lúc hai thiết bị Android đang được kết nối. So sánh trace cho đến thông báo cuối cùng “Successfully executed watch action”; hoàn tất khi việc lưu lặp lại cập nhật ứng dụng một cách đáng tin cậy trên cả hai thiết bị.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, angular, javascript, webpack
Lĩnh vực
cli, mobile-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.