Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11111] Alloy projects can't be named "alloy"

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-08-24T21:11:24.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsCore
Labelsn/a
ReporterTony Lukasavage
AssigneeEric Merriman
Created2012-09-25T15:04:34.000+0000
Updated2017-03-24T21:59:33.000+0000

Description

Apparently there is a requirement to the build process that a project cannot have the same name as a commonjs module in the Resources directory. Alloy projects all have an "alloy.js" module in Resources. When you create a project named "alloy" and attempt to run it, you get the following errors:

ios

Project name alloy conflicts with resource named /Users/tlukasavage/Documents/Titanium Studio Workspace/alloy/Resources/alloy: Cannot build. Please change one.

android

[DEBUG] Waiting for device to be ready ...
[TRACE] adb devices returned 1 devices/emulators
[DEBUG] Device connected... (waited 0 seconds)
[DEBUG] waited 0.023780 seconds on emulator to get ready
[DEBUG] /Users/tlukasavage/Development/android/android-sdk-macosx-r20.0.3/platform-tools/adb -s "" shell ls /data/app/com.appc.alloy*.apk
[DEBUG] com.appc.alloy installed? False
[ERROR] error: device not found

...

[DEBUG] Waiting for device to be ready ...
[TRACE] adb devices returned 1 devices/emulators
[DEBUG] Device connected... (waited 0 seconds)
[DEBUG] waited 0.017983 seconds on emulator to get ready
[INFO] Installing application on device
[DEBUG] /Users/tlukasavage/Development/android/android-sdk-macosx-r20.0.3/platform-tools/adb -s "" install -r "/Users/tlukasavage/Documents/Titanium Studio Workspace/alloy/build/android/bin/app.apk"
The above install statement never finishes for android as I assume the apk is never created. We should allow developers to name apps whatever they want, or we should be giving them notifications in TiStudio letting them know before the project is even created that the name is not allowed.

Comments

  1. Chris Barber 2016-08-24

    Unable to reproduce with Titanium SDK master (6.1.0) and Alloy 1.9.1. No idea when it was fixed, but now you can name all your apps "alloy".
  2. Lee Morris 2017-03-24

    Closing ticket as the issue cannot be reproduced and with reference to the previous comments.

JSON Source