[TIMOB-26649] [LiveView] Unable to use LiveView with KitchenSink-v2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-06-11T13:37:08.000+0000 |
Affected Version/s | Release 8.0.0 |
Fix Version/s | Release 9.1.0 |
Components | LiveView |
Labels | n/a |
Reporter | Samir Mohammed |
Assignee | Ewan Harris |
Created | 2018-12-13T14:00:39.000+0000 |
Updated | 2020-06-11T13:37:08.000+0000 |
Description
When trying to use liveView with KitchenSink the application throws the following error:
Download
Download the latest SDK version
In the project directory run the following command
liveview:clihook Error: ENOENT: no such file or directory, open '/Users/Samir/Desktop/Appc/Repos/kitchensink-v2/i18n/de/strings.xml'
---------------------------------------------
at /Users/Samir/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20181212133855/node_modules/liveview/hook/lvhook.js:172:10
at /Users/Samir/.appcelerator/install/7.0.8/package/node_modules/titanium/lib/hook.js:235:13
at /Users/Samir/.appcelerator/install/7.0.8/package/node_modules/titanium/node_modules/async/dist/async.js:3845:9
at replenish (/Users/Samir/.appcelerator/install/7.0.8/package/node_modules/titanium/node_modules/async/dist/async.js:1030:17)
at /Users/Samir/.appcelerator/install/7.0.8/package/node_modules/titanium/node_modules/async/dist/async.js:1034:9
at eachOfLimit (/Users/Samir/.appcelerator/install/7.0.8/package/node_modules/titanium/node_modules/async/dist/async.js:1061:22)
at /Users/Samir/.appcelerator/install/7.0.8/package/node_modules/titanium/node_modules/async/dist/async.js:1066:16
at _parallel (/Users/Samir/.appcelerator/install/7.0.8/package/node_modules/titanium/node_modules/async/dist/async.js:3844:5)
at Object.series (/Users/Samir/.appcelerator/install/7.0.8/package/node_modules/titanium/node_modules/async/dist/async.js:4663:3)
*Steps to reproduce*
This is probably because of kitchensink-v2 having an app.xml file for internationalized string at the OS level, but not a strings.xml file which is perfectly valid. LiveView assumes that if you have an i18n directory, you've got a strings.xml file, we should just check for the existence of that file before attempting to read it.
PR: https://github.com/appcelerator/liveview/pull/121
To workaround this, create strings.xml file in the app/i18n/ de and en folders that dupes app.xml
*Closing ticket* Fix verified in SDK version
9.1.0.v20200610180055
. Able to use liveView while running KitchenSink-V2 and able to see the application reload when saving. *Test Environment* MacOS Catalina: 10.15.5 Beta Xcode: 11.4 Java Version: 1.8.0_131 Android NDK: 21.1.6273396-beta2 Node.js: 10.16.3 ""NPM":"5.0.0","CLI":"8.0.0"" Andoird Pixel xl 7.1.1 Emulator iphone 8 (13.4 sim)