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

on windows lit auth not work, and no output auth result #117

Closed
zhaozg opened this issue Aug 20, 2015 · 7 comments
Closed

on windows lit auth not work, and no output auth result #117

zhaozg opened this issue Aug 20, 2015 · 7 comments

Comments

@zhaozg
Copy link
Member

zhaozg commented Aug 20, 2015

  1. env
E:\work\luaclibs>dir %HOME%\.ssh /w
 驱动器 C 中的卷是 SYS
 卷的序列号是 248A-A989

 C:\Users\zhaozg\.ssh 的目录

[.]           [..]          id_rsa        id_rsa.pub    known_hosts
  1. config
E:\work\luaclibs>e:\work\luabuild\bin\Win32Release\luvi e:\work\luaclibs\lit -- config
lit version: 2.2.5
luvi version: 1.0.1
command: config
load config: C:\Users\zhaozg\AppData\Roaming\litconfig
username: zhaozg@gmail.com
upstream: wss://lit.luvit.io/
database: C:\Users\zhaozg\AppData\Roaming\litdb.git
defaultUpstream: wss://lit.luvit.io/
done: success
  1. auth
E:\work\luaclibs>\work\luabuild\bin\Win32Release\lit auth zhaozg@gmail.com

E:\work\luaclibs>e:\work\luabuild\bin\Win32Release\luvi e:\work\luaclibs\lit -- auth zhaozg@gmail.com
lit version: 2.2.5
luvi version: 1.0.1
command: auth zhaozg@gmail.com
load config: C:\Users\zhaozg\AppData\Roaming\litconfig
username: zhaozg@gmail.com
---END OF OUTPUT
  1. add
E:\work\luaclibs>\work\luabuild\bin\Win32Release\lit add luvit-http-cookie

E:\work\luaclibs>e:\work\luabuild\bin\Win32Release\luvi e:\work\luaclibs\lit -- add luvit-http-cookie
lit version: 2.2.5
luvi version: 1.0.1
command: add luvit-http-cookie
load config: C:\Users\zhaozg\AppData\Roaming\litconfig
fail: [string "bundle:/libs/core.lua"]:122: Please run `lit auth` to configure your username
stack traceback:
        [C]: in function 'error'
        [string "bundle:/libs/core.lua"]:122: in function 'add'
        [string "bundle:/commands/add.lua"]:8: in function 'fn'
        [string "bundle:deps/require.lua"]:291: in function 'require'
        [string "bundle:/main.lua"]:50: in function <[string "bundle:/main.lua"]:38>
        [C]: in function 'xpcall'
        [string "bundle:/main.lua"]:38: in function <[string "bundle:/main.lua"]:31>
@creationix
Copy link
Member

I can confirm it just exits quietly when there is a problem on windows. I'll see if I can find the root cause.

One thing I've noticed is you're using an email for username. It should match your github username of zhaozg.

@zhaozg
Copy link
Member Author

zhaozg commented Aug 22, 2015

Hi, I do some dig about this issue.
When I run lit, git not exist in env %PATH% on my PC, this will cause auth.lua exit at line 28 when to call exec.
When I add git in %PATH%, works fine.

@zhaozg
Copy link
Member Author

zhaozg commented Aug 22, 2015

Another quest not relative to this: why luv not resolve dns from local hosts file?
I want remove https://luvit.io/lit.html#cookie because thre are something wrong, howto do it?

@creationix
Copy link
Member

Resolving from local hosts file requires a bit of manual work (#120). I'm not sure luvit even fully supports this. Luv just uses the dns primitives in libuv directly (which ignore local hosts).

I've removed the package for you. The only way is to tell me and I can log into the server and delete the tag.

@creationix
Copy link
Member

Thanks for debugging the auth issue, I'll see what I can do about the git dependency and what I can do about the silent exit on exception. Both need fixing. (#118, #119)

@creationix
Copy link
Member

Lit auth should work on windows now, the other issues are being tracked on their own.

@zhaozg
Copy link
Member Author

zhaozg commented Aug 26, 2015

works fine

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

No branches or pull requests

2 participants