-
Notifications
You must be signed in to change notification settings - Fork 455
Unknown language "javascript" #80
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
Comments
I have this problem, too |
Same here, no matter which language I choose. I guess there might be some changes to leetcode's API. |
It seems that leetcode had removed templates and testcase from leetcode-cli/lib/plugins/leetcode.js Lines 148 to 150 in 8b7d55f
|
* update to support recent leetcode.com change. Signed-off-by: Eric Wang <[email protected]>
Yep, leetcode.com is using a new API o fetch question details, that's why we failed to get detailed info from "pageData" in the old html. I have made a quick fix for it but have no time for a full regression testings right now (e.g. submission, star command, and 3rd party plugins). While you guys can still try it out now to see if there are other errors remained:
please ping me for any errors you meet, will revisit this tomorrow I hope. |
It works for me. Thanks for your hotfix! |
It is not totally fixed. I can show most problems properly now, but some not.
|
@GameBurning try clean cache?
|
@skygragon Thanks! The cached json is the cause. |
Signed-off-by: Eric Wang <[email protected]>
My two cents since I had the exact same problem... Make sure we call "leetcode cache -d" before trying again after upgrading the leetcode cli. That will clean all caches and will make sure we don't see similar problems again. |
Reinstallation and cleaning the cache solved the problem for me.
|
Worked after upgrading to 2.1.0 and clear cache. |
I meet this problem again : [ERROR] Unknown language "cpp" [0] |
@Pyboon give another try after running |
still have trouble |
@Pyboon 175/176/181 are all sql questions, so "cpp" doesn't work for them. please try:
|
@Pyboon in the case you could omit "-gx" in your show command then you could see the question details first before generating source code via "-g". |
Signed-off-by: Eric Wang <[email protected]>
Signed-off-by: Eric Wang <[email protected]>
Problem Summary
run
leetcode show 523 -x -g
, got an error[ERROR] Unknown language "javascript" [0]
How to reproduce
Skip
Environment
[Environment]
Node v7.7.2
OS darwin 17.2.0
[Configuration]
AUTO_LOGIN true
COLOR_THEME default
ICON_THEME
LANG javascript
MAX_WORKERS 10
USE_COLOR true
[Themes]
Colors blue,dark,default,orange,pink
Icons ascii,default,win7
The text was updated successfully, but these errors were encountered: