clearloop/leetcode-cli

Mistakenly reports 'go' not supported for questions

Closed this issue · 1 comments

Hi, amazing tool... I think I'm seeing an issue where the tool fails to correctly detect that go is supported for various questions:

`❯ RUST_BACKTRACE=1 leetcode edit 122

[122] Best Time to Buy and Sell Stock II is on the run...

Anyhow(This question doesn't support go, please try another

Stack backtrace:
0: anyhow::error::::msg
1: anyhow::__private::format_err
2: <leetcode_cli::cmds::edit::EditCommand as leetcode_cli::cmds::Command>::handler::{{closure}}
3: tokio::runtime::park::CachedParkThread::block_on
4: tokio::runtime::context::runtime::enter_runtime
5: tokio::runtime::runtime::Runtime::block_on
6: leetcode::main
7: std::sys_common::backtrace::__rust_begin_short_backtrace
8: std::rt::lang_start::{{closure}}
9: std::rt::lang_start_internal
10: main
11:
12: __libc_start_main
13: _start)

~/dev/leetcode`

My config looks like this:

`[code]
lang = "go"
editor = "vim"

[storage]
cache = 'Problems'
code = 'code'
root = '~/.leetcode'
scripts = "scripts"`

Closing cause the correct value is 'golang'