skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.65k stars 459 forks source link

Leetcode submit fails #177

Closed dmartyanov closed 5 years ago

dmartyanov commented 5 years ago

leetcode submit fails for me

~/p/c/l/leetcode-samples> leetcode submit 174.dungeon-game.py
/Users/dmartyanov/psn/contests/leetcode/leetcode-cli/lib/plugins/leetcode.js:264
    x.stdout = util.inspect((result.code_output || []).join('\n'));
                                                       ^

TypeError: (result.code_output || []).join is not a function
    at formatResult (/Users/dmartyanov/psn/contests/leetcode/leetcode-cli/lib/plugins/leetcode.js:264:56)
    at Request._callback (/Users/dmartyanov/psn/contests/leetcode/leetcode-cli/lib/plugins/leetcode.js:233:16)
    at Request.self.callback (/Users/dmartyanov/psn/contests/leetcode/leetcode-cli/node_modules/request/request.js:185:22)
    at Request.emit (events.js:209:13)
    at Request.<anonymous> (/Users/dmartyanov/psn/contests/leetcode/leetcode-cli/node_modules/request/request.js:1161:10)
    at Request.emit (events.js:209:13)
    at IncomingMessage.<anonymous> (/Users/dmartyanov/psn/contests/leetcode/leetcode-cli/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:297:20)
    at IncomingMessage.emit (events.js:214:15)
    at endReadableNT (_stream_readable.js:1178:12)

CLI v2.6.1-8dc0b2a [Environment] Node v12.9.0 OS darwin 18.7.0 [Plugins] github 2018.11.18

kgfly commented 5 years ago

Any suggestion when the fix could be released? Currently, it's just so inconvenient. Thanks.

skygragon commented 5 years ago

@9527KGG the fresh released 2.6.2 should fix this, sorry for this late reply