[AC-2406] CLI: Unable to locate the CLI executable error
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-05T06:52:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Michel Anderson Lutz |
Assignee | Shak Hossain |
Created | 2013-02-05T00:06:37.000+0000 |
Updated | 2016-03-08T07:41:26.000+0000 |
Description
Steps to Reproduce
before I could not run the app in the simulator installed a previous version of the 3.0 titanium and decided, after installing the update can not run on devices.
Run with iOS device and the window with error appears
Actual Result
Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI.
Expected Result
app run on device
Attachments
Please can you post logs, add screenshots, post the exact error message, state your Ti SDK version, which iOS version and device, and so on. Thanks.
LOG !SESSION 2013-02-04 22:15:25.320 ----------------------------------------------- eclipse.buildId=3.0.1.201212181159 java.version=1.6.0_37 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=pt_BR Framework arguments: -keyring /Users/michel/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/michel/.eclipse_keyring -consoleLog -showlocation !ENTRY org.eclipse.core.net 1 0 2013-02-04 22:15:42.019 !MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences !ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2013-02-04 22:15:44.676 !MESSAGE No repository found at file:/Applications/Titanium%20Studio_/.eclipseextension. !ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2013-02-04 22:15:48.822 !MESSAGE No repository found at file:/Applications/Titanium%20Studio_/configuration/org.eclipse.osgi/bundles/211/data/listener_1925729951/. !ENTRY com.appcelerator.titanium.alloy.ui 4 0 2013-02-04 22:15:52.485 !MESSAGE (Build 3.0.1.201212181159) [ERROR] Failed to add Alloy templates !STACK 1 org.eclipse.core.runtime.CoreException: Unable to find 'alloy' binary. at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.getTemplatesWithNewCommand(AlloyTemplateInstaller.java:261) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.getTemplates(AlloyTemplateInstaller.java:246) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.access$0(AlloyTemplateInstaller.java:244) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller$1.run(AlloyTemplateInstaller.java:151) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 com.appcelerator.titanium.alloy.ui 4 0 2013-02-04 22:15:52.485 !MESSAGE Unable to find 'alloy' binary. !ENTRY org.eclipse.ui 4 0 2013-02-04 22:16:17.946 !MESSAGE Unhandled event loop exception !STACK 0 org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed) at org.eclipse.swt.SWT.error(SWT.java:4282) at org.eclipse.swt.SWT.error(SWT.java:4197) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) Caused by: org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:4282) at org.eclipse.swt.SWT.error(SWT.java:4197) at org.eclipse.swt.SWT.error(SWT.java:4168) at org.eclipse.swt.widgets.Widget.error(Widget.java:774) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:568) at org.eclipse.swt.widgets.Tree.getItems(Tree.java:1669) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.restoreExpansion(LaunchConfigurationsDialog.java:1183) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.initializeContent(LaunchConfigurationsDialog.java:1086) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.createContents(LaunchConfigurationsDialog.java:437) at org.eclipse.jface.window.Window.create(Window.java:431) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.create(LaunchConfigurationsDialog.java:368) at org.eclipse.jface.window.Window.open(Window.java:790) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1132) at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:579) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:587) at org.eclipse.debug.internal.ui.DebugUIPlugin$10.run(DebugUIPlugin.java:1155) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) ... 22 more !ENTRY com.appcelerator.titanium.mobile 4 0 2013-02-04 22:16:23.074 !MESSAGE Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI.
TEST diagnostic Host OS: Mac OS X OS Arch: x86 JRE Version: 1.6.0_37 JRE Vendor: Apple Inc. JRE Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Install Directory: file:/Applications/Titanium Studio/ Version: 3.0.1.201212181159 VM Arguments: -Xms40m -Xmx1024m -Declipse.p2.unsignedPolicy=allow -Declipse.log.size.max=10000 -Declipse.log.backup.max=5 -Xdock:icon=../Resources/titanium.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m -Djava.class.path=/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar Workspace Directory: file:/Users/michel/Documents/Titanium_Studio_Workspace/ Language: pt_BR Titanium SDK Version: 2.1.4 Mobile SDK Modules API Version:2 Mobile SDK Timestamp: 11/09/12 12:46 Mobile SDK Build Number: 51f2c64 Titanium SDK Location: /Users/michel/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.GA Titanium SDK Version: 3.0.0 Mobile SDK Modules API Version:2 Mobile SDK Timestamp: 12/12/12 18:49 Mobile SDK Build Number: a5894b3 Titanium SDK Location: /Users/michel/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA Titanium CLI Version: 3.0.23 Titanium CLI Enabled: true Alloy Version: 0.3.6
Thanks for the info, reopening.
ok, Now the same error occurs for running the application on the iOS simulator, the problem started to occur after updating the Titanium studio.
Hello, any idea what it might be?
Environment Used: OS: Win 7 Titanium Studio: 3.0.2.201302141201 Titanium SDK: 3.0.2.v20130207164659 I am able to reproduce this bug on my machine using following steps: 1. Create a default project 2. Run project on Mobile Web Preview in Browser. Error prompt appears: Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI.
Does restarting Studio fix the issue?
resolved in my mac... create .bash_profile in my home and write export PATH=$PATH:/usr/local/share/npm/bin in terminal execute . ~/.bash_profile confirm echo $PATH ->/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/share/npm/bin open Studio and Run project.
The PATH variable in the comment above is indeed required. Let us know if you still have the issue after trying the above suggestion.
Since we have not heard from Michel in a while, we assume the issue is resolved. Closing.