Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26649] [LiveView] Unable to use LiveView with KitchenSink-v2

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2020-06-11T13:37:08.000+0000
Affected Version/sRelease 8.0.0
Fix Version/sRelease 9.1.0
ComponentsLiveView
Labelsn/a
ReporterSamir Mohammed
AssigneeEwan Harris
Created2018-12-13T14:00:39.000+0000
Updated2020-06-11T13:37:08.000+0000

Description

When trying to use liveView with KitchenSink the application throws the following error:
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*

Download KitchenSink-v2

Download the latest SDK version appc ti sdk install -b master -d

In the project directory run the following command DEBUG=liveview:* appc run -p ios --liveview

Above error is thrown in the console and an error can be seen in the iOS simulator

*Actual result* Above error can be seen. *Expected result* Application should show no error and LiveView should work with KitchenSInk without any issues.

Comments

  1. Ewan Harris 2018-12-18

    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.
  2. Ewan Harris 2018-12-18

    PR: https://github.com/appcelerator/liveview/pull/121
  3. Ewan Harris 2019-01-08

    To workaround this, create strings.xml file in the app/i18n/ de and en folders that dupes app.xml
  4. Samir Mohammed 2020-06-11

    *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)

JSON Source