tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

Error when running tripple #90

Open cchamnab opened 10 years ago

cchamnab commented 10 years ago

i don't know what happen..when i'm trying to run command triple , it show error like this :

var cacheFile = path.join(sdk.path,'triple.cache '); ^ TypeError: Cannot read property 'path' of undefined at C:\Users\Carl\AppData\Roaming\npm\node_modules\triple\lib\triple.js:78:34

at C:\Users\Carl\AppData\Roaming\npm\node_modules\triple\lib\titanium.js:45:

21 at ChildProcess.exithandler (child_process.js:652:7) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5)

tonylukasavage commented 10 years ago

Resolved in e944fd435ea4078f53cdcb923f9b9e3b28b9ce3e

I also published version 0.3.1 to npm with this fix. Please try installing 0.3.1 and try again:

$ sudo npm install -g triple@0.3.1
cchamnab commented 10 years ago

after did that ...i have another error :

warn: could not find api.jsca file, auto-complete disabled [ creating app ]

events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:1001:11) at Process.ChildProcess._handle.onexit (child_process.js:792:34)

tonylukasavage commented 10 years ago

This may not generate much more output, but try running triple with the --verbose flag.

I am curious what the root cause of not being able to load the app.jsca file. Can you give me details of your setup? OS and version, Titanium SDK version, and what's the output of running "ti sdk" at the command line?

cchamnab commented 10 years ago

OS : Window 7 32bit && Window 8.1 64bit ( produce the same error ) NODE : 0.10.29 (ia32)

SDK Install Locations: C:\ProgramData\Application Data\Titanium C:\ProgramData\Titanium [default] C:\Users\USER\AppData\Roaming\Titanium

Installed SDKs: 3.3.0.GA [selected] C:\Users\USER\AppData\Roaming\Titanium\mobilesdk\win32\3 .3.0.GA 3.2.3.GA C:\Users\USER\AppData\Roaming\Titanium\mobilesdk\win32\3 .2.3.GA

tonylukasavage commented 10 years ago

Ah, as per the Support section of the docs, Windows isn't officially supported. So you are likely to run into this and other errors, and undoubtedly some weird formatting to output. You can track support for Windows here: #11. It is slated for the 0.4.0 release.