gittio icon indicating copy to clipboard operation
gittio copied to clipboard

gittio hangs indefinitely

Open botmaster opened this issue 8 years ago • 15 comments

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

botmaster avatar Sep 12 '16 08:09 botmaster

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)?

FokkeZB avatar Sep 12 '16 08:09 FokkeZB

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.

botmaster avatar Sep 13 '16 08:09 botmaster

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

FokkeZB avatar Sep 13 '16 15:09 FokkeZB

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 !

botmaster avatar Sep 14 '16 09:09 botmaster

same here

HazemKhaled avatar Sep 15 '16 09:09 HazemKhaled

@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.

FokkeZB avatar Sep 18 '16 17:09 FokkeZB

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

Topener avatar Sep 19 '16 09:09 Topener

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

Topener avatar Sep 19 '16 10:09 Topener

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.

FokkeZB avatar Sep 19 '16 19:09 FokkeZB

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

Topener avatar Sep 19 '16 20:09 Topener

@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).

FokkeZB avatar Sep 20 '16 06:09 FokkeZB

I can reproduce.

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

bert-w avatar Apr 26 '17 08:04 bert-w

That makes sense since it depends on it :D

FokkeZB avatar Apr 26 '17 14:04 FokkeZB

hmm can this somehow be bent to use appc titanium?

bert-w avatar Apr 26 '17 14:04 bert-w

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

FokkeZB avatar Apr 28 '17 14:04 FokkeZB