leetcode-cli icon indicating copy to clipboard operation
leetcode-cli copied to clipboard

leetcode edit doesn't do anything

Open darzok0914 opened this issue 2 years ago • 2 comments

Hi, I just installed leetcode-cli

the command leetcode pick 1128 works well, however the command leetcode edit doesn't seem to work ~ > leetcode edit 1128 error: No such file or directory (os error 2), please try again

however the command seems to create files into my ~/.leetcode/code/ directory

~/.leetcode/code > ls Permissions Size User Date Modified Name .rw-rw-r-- 98 ori 11 Apr 19:26 1.two-sum.cpp .rw-rw-r-- 94 ori 11 Apr 19:24 1.two-sum.rs .rw-rw-r-- 31 ori 11 Apr 19:26 1.two-sum.tests.dat .rw-rw-r-- 370 ori 11 Apr 19:39 2.add-two-numbers.cpp .rw-rw-r-- 49 ori 11 Apr 19:39 2.add-two-numbers.tests.dat .rw-rw-r-- 103 ori 11 Apr 19:29 1128.number-of-equivalent-domino-pairs.cpp .rw-rw-r-- 57 ori 11 Apr 19:29 1128.number-of-equivalent-domino-pairs.tests.dat

I am using zsh and ubuntu 20.04 if this can help

darzok0914 avatar Apr 11 '22 19:04 darzok0914

@darzok0914 this issue would be much clearer if you stated whether the edit command fails for all problems, or fails only on 1128.

bulletmark avatar Apr 11 '22 22:04 bulletmark

can you paste your leetcode.toml here? @darzok0914 looks like this is related to the default language you set in the config file

clearloop avatar Apr 12 '22 06:04 clearloop

Too long no update, close.

wendajiang avatar Mar 07 '23 02:03 wendajiang