Open botmaster opened 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)?
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 Thanks, do you have the "ti" CLI installed? It might not work without, although in that case it should error and not hang.
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 !
same here
@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.
When running timodules I get an array of all modules.. no errors
Just removing files in ~/.titanium
did the trick for me
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.
I have time machine. Opened it up, has 450 ####-liveview files and a couple others. I'll send it to you in private
@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).
I can reproduce.
My gittio install
command does nothing after I run npm uninstall -g titanium
. Installing the titanium module makes it work again.
That makes sense since it depends on it :D
hmm can this somehow be bent to use appc titanium
?
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