tidev / gittio

Search & Install all Titanium Modules and Alloy Widgets on GitHub
http://gitt.io
Other
24 stars 19 forks source link

gittio hangs indefinitely #115

Open botmaster opened 8 years ago

botmaster commented 8 years ago

gittio hangs indefinitely on all commands with no errors. gittio info dk.napp.drawer gittio install gittio update ...

node: 5.1.1 npm: 3.3.12 OS: OSX 10.11.6

FokkeZB commented 8 years ago

Unfortunately I cannot reproduce, so not fix either. I really need your help here.

Could you go into your instalment of the CLI and add log calls starting at https://github.com/FokkeZB/gittio/blob/master/lib/gittio.js#L486 and into https://github.com/FokkeZB/gittio/blob/master/lib/component.js#L10 to see what step takes so long (or never finished at all)?

botmaster commented 8 years ago

Ok, when I run the command gittio info dk.napp.drawer the stack is : gittio.js -> info() config.js -> exports.init() but the callback timodules.list(process.cwd(), function(err, res) is not called.

FokkeZB commented 8 years ago

@botmaster Thanks, do you have the "ti" CLI installed? It might not work without, although in that case it should error and not hang.

botmaster commented 8 years ago

gittio it works well now. I uninstalled titanium CLI, deleted the folder ~ / .titanium, reinstalled titanium CLI. I do not understand why but it works. May be a permissions problem. Thanks for your help !

HazemKhaled commented 8 years ago

same here

FokkeZB commented 8 years ago

@botmaster thx for debugging.

@HazemKhaled hoping you still have the issue, could you try:

sudo npm install -g timodules
timodules

Curious to see what is breaking in timodules, which seems to be the issue.

Topener commented 8 years ago

When running timodules I get an array of all modules.. no errors

Topener commented 8 years ago

Just removing files in ~/.titanium did the trick for me

FokkeZB commented 8 years ago

O great.. you didn't make a backup of that folder I'm afraid? I'm pretty sure the issue is in timodules somewhere. Might not affect the CLI, but we should debug if it's the module API.

Topener commented 8 years ago

I have time machine. Opened it up, has 450 ####-liveview files and a couple others. I'll send it to you in private

FokkeZB commented 8 years ago

@Topener unfortunately, I can't reproduce with the .titanium folder you gave me. I do notice (also with my own) that https://github.com/FokkeZB/gittio/blob/master/lib/config.js#L91 takes a looong time. And with https://github.com/FokkeZB/gittio/issues/115#issuecomment-246607699 it seems that when it hangs it simply never calls back.

I'm afraid either @botmaster or you will have to debug this one on your own machines by diving deeper into timodules to see where it strands. Also try to see if it makes a different whether you run gittio info in a project folder or somewhere else (where it doesn't scan for local modules).

bert-w commented 7 years ago

I can reproduce.

My gittio install command does nothing after I run npm uninstall -g titanium. Installing the titanium module makes it work again.

FokkeZB commented 7 years ago

That makes sense since it depends on it :D

bert-w commented 7 years ago

hmm can this somehow be bent to use appc titanium?

FokkeZB commented 7 years ago

Mmm, actually timodules already uses appc-compat which should take care of that. Argh!!!