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

main运行错误 #7

Open
yishenggudou opened this issue Mar 16, 2014 · 2 comments
Open

main运行错误 #7

yishenggudou opened this issue Mar 16, 2014 · 2 comments

Comments

@yishenggudou
Copy link

timger-mac:qqbot timger$ ./main.coffee 
path.exists is now called `fs.exists`.
ReferenceError: password is not defined
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/src/qqauth.coffee:120:23)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/src/qqauth.coffee:315:4)
    at Module._compile (module.js:456:26)
    at Object.require.extensions..coffee (/usr/local/Cellar/coffee-script/1.1.3/lib/coffee-script/lib/coffee-script/coffee-script.js:21:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/main.coffee:13:10)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/main.coffee:83:4)

配置如下

timger-mac:qqbot timger$ ls -alh
total 96
drwxr-xr-x  19 timger  staff   646B Mar 15 16:09 .
drwxr-xr-x  87 timger  staff   2.9K Mar 15 15:50 ..
drwxr-xr-x  13 timger  staff   442B Mar 15 15:50 .git
-rw-r--r--   1 timger  staff    31B Mar 15 15:50 .gitignore
-rw-r--r--   1 timger  staff   1.0K Mar 15 15:50 LICENSE
-rw-r--r--   1 timger  staff   3.9K Mar 15 15:50 README.md
-rw-r--r--   1 timger  staff   128B Mar 15 15:50 config.coffee
-rw-r--r--   1 timger  staff   253B Mar 15 16:09 config.demo.yaml
-rw-r--r--   1 timger  staff   236B Mar 15 15:50 config.demo.yaml~
-rw-r--r--   1 timger  staff   253B Mar 15 16:08 config.yaml
-rw-r--r--   1 timger  staff   251B Mar 15 15:56 config.yaml~
-rwxr-xr-x   1 timger  staff   2.0K Mar 15 15:50 main.coffee
drwxr-xr-x   6 timger  staff   204B Mar 15 15:57 node_modules
-rw-r--r--   1 timger  staff   671B Mar 15 15:50 package.json
drwxr-xr-x   5 timger  staff   170B Mar 15 15:50 plugins
-rw-r--r--   1 timger  staff   6.5K Mar 15 15:50 protocol.md
drwxr-xr-x  10 timger  staff   340B Mar 15 15:50 src
drwxr-xr-x   7 timger  staff   238B Mar 15 15:50 tests
drwxr-xr-x   3 timger  staff   102B Mar 15 15:50 tmp

config.yaml 里面的用户和密码已经填写了

@xhan
Copy link
Owner

xhan commented Mar 20, 2014

看出错信息 问题在 qqauth.coffee 里的 encode_password 函数。具体的你可以加些日志看看。

@yishenggudou
Copy link
Author

timger-mac:qqbot timger$ ./main.coffee 
path.exists is now called `fs.exists`.
ReferenceError: password is not defined
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/src/qqauth.coffee:120:23)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/src/qqauth.coffee:315:4)
    at Module._compile (module.js:456:26)
    at Object.require.extensions..coffee (/usr/local/Cellar/coffee-script/1.1.3/lib/coffee-script/lib/coffee-script/coffee-script.js:21:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/main.coffee:13:10)
    at Object.<anonymous> (/Volumes/MACEXT/GitHub/qqbot/main.coffee:63:4)

还是这样啊 莫名其妙的错误

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