Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gittio hangs indefinitely #115

Open
botmaster opened this issue Sep 12, 2016 · 15 comments
Open

gittio hangs indefinitely #115

botmaster opened this issue Sep 12, 2016 · 15 comments

Comments

@botmaster
Copy link

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
Copy link
Contributor

FokkeZB commented Sep 12, 2016

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
Copy link
Author

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
Copy link
Contributor

FokkeZB commented Sep 13, 2016

@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
Copy link
Author

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
Copy link

same here

@FokkeZB
Copy link
Contributor

FokkeZB commented Sep 18, 2016

@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
Copy link

Topener commented Sep 19, 2016

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

@Topener
Copy link

Topener commented Sep 19, 2016

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

@FokkeZB
Copy link
Contributor

FokkeZB commented Sep 19, 2016

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
Copy link

Topener commented Sep 19, 2016

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

@FokkeZB
Copy link
Contributor

FokkeZB commented Sep 20, 2016

@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 #115 (comment) 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
Copy link

bert-w commented Apr 26, 2017

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
Copy link
Contributor

FokkeZB commented Apr 26, 2017

That makes sense since it depends on it :D

@bert-w
Copy link

bert-w commented Apr 26, 2017

hmm can this somehow be bent to use appc titanium?

@FokkeZB
Copy link
Contributor

FokkeZB commented Apr 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants