Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15654] Anvil: Android run for anvil errors out

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-11-07T16:55:04.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAnvil
Labelsqe-3.2.0
ReporterLokesh Choudhary
AssigneeAllen Yeung
Created2013-11-04T18:46:47.000+0000
Updated2013-11-07T16:55:04.000+0000

Description

Description:

1. Try to run any suite for platform android on anvil.

Actual Result:

NOTE: I started to see this error after updating the CLI. 1. We get following errors and the run fails:
LChoudharyMBP:~ lokeshchoudhary$  node /Users/lokeshchoudhary/Desktop/anvil/titanium_mobile_repo/titanium_mobile/anvil/driver/driver.js --platform=android --command="start  --config=default --suite=text/textfield --log-level=verbose"
path.existsSync is now called fs.existsSync.
using Titanium SDK version <3.2.0.v20131025115646>
the custom harness config set at <./anvil/configSet/name.txt> does not contain a name.txt file that provides a harness config set name, ignoring
- waiting for device -
harness uninstalled
harness is not built, building
harness does not exist, creating
temp android harness dir already exist
harness created
harness updated with template
harness suites updated
harness tiapp.xml updated
app.js updated for harness
Traceback (most recent call last):
  File "/Users/lokeshchoudhary/Desktop/anvil/anvilsdk/mobilesdk/osx/3.2.0.v20131025115646/android/builder.py", line 2546, in <module>
    builder = Builder(project_name,sdk_dir,project_dir,template_dir,app_id,is_emulator)
  File "/Users/lokeshchoudhary/Desktop/anvil/anvilsdk/mobilesdk/osx/3.2.0.v20131025115646/android/builder.py", line 458, in __init__
    android_creator.create(parent_dir, project_dir=self.top_dir, build_time=True)
  File "/Users/lokeshchoudhary/Desktop/anvil/anvilsdk/mobilesdk/osx/3.2.0.v20131025115646/android/android.py", line 341, in create
    app_properties = self.app_properties, app_info = self.app_info)
  File "/Users/lokeshchoudhary/Desktop/anvil/anvilsdk/mobilesdk/osx/3.2.0.v20131025115646/android/android.py", line 110, in render
    tmpl = self.load_template(os.path.join(template_dir, 'templates', template_file))
  File "/Users/lokeshchoudhary/Desktop/anvil/anvilsdk/mobilesdk/osx/3.2.0.v20131025115646/android/android.py", line 102, in load_template
    return Template(filename=template, output_encoding='utf-8', encoding_errors='replace')
  File "/Users/lokeshchoudhary/Desktop/anvil/anvilsdk/mobilesdk/osx/3.2.0.v20131025115646/common/mako/template.py", line 93, in __init__
    (code, module) = _compile_text(self, file(filename).read(), filename)
IOError: [Errno 2] No such file or directory: '/Users/lokeshchoudhary/Desktop/anvil/anvilsdk/mobilesdk/osx/3.2.0.v20131025115646/android/templates/AppInfo.java'
error encountered when building harness: 1

Expected Result:

1. We should not get any errors & the anvil run for android should run normally.

Comments

  1. Lokesh Choudhary 2013-11-04

    I am not able to verify this issue today due to npm issues. But will comment on it soon after the npm issue is fixed.
  2. Lokesh Choudhary 2013-11-04

    Will close if not reproducible after the CLI install issue is fixed. Ticket: TIMOB-15658
  3. Lokesh Choudhary 2013-11-05

    Tried it with latest CLI 3.2.0 & sdk 3.2.0.v20131104164843 & was not reproduce the issue.
  4. Lokesh Choudhary 2013-11-05

    Cannot Reproduce . Closing.

JSON Source