Closed bethandtownes closed 4 years ago
I reinstalled everything and have the correct version of dependencies. Still it's a no go. I think it's in a broken state right now.
I can't reproduce this error now, but I find another possible bug which is related to byte compiling. it seems emacs-aio can't be byte compiled correctly, so I try to disable it in the latest commit.
You can try to delete leetcode.elc
(in elpa directory), and try again.
I tried it but to no avail.
It turns out that i can't login. It bounces back with a message "login failed" in the url debug. However, I double checked that my account and password entered are correct. Any idea what the problem might be?
Could it be a problem of the user agent? How do I clear the cache?
That's weird. I can log in with auth-source, did you check your .authinfo.gpg
(depend on your auth-sources)? There should be a line like below:
machine leetcode.com login <email> password <password>
I'm not sure if this is about cookie.
If you used the old version, you can clear the request.el cache by delete the cache dir.
For current version, you can execute url-cookie-list
and press C-k
to delete.
Okay. I will try that. The current vscode-leetcode is not working properly..plus i am not a big fan of vscode.. this is the only alternative that I like..too sad that is does not work on my machine.. it could be that I use arch linux...
I tried to clean the cache.. but it still does not work. soooo weird
放弃了! 登不上!
I haven't take elisp error handling seriously by now, so if something went wrong, this package may not give any useful info.
I'll let the issue opening, in case that someone encountered the same problem.
The source of the problem is that it cannot login correctly using the information I provided. I suspect that the request somehow got bounced back for some unknown reason.
If you want a full url-debug trace, I can provide it here.
I cannot login as well. (from 0905 to current version) I’m working on Ubuntu 18, emacs 26.2
After recompiling leetcode.el, I see lots of warnings, reporting some unused symbols. Some of those symbols follow “let-if”.
I tried to remove all pairs of “()” directly following “let-if”. I could login, but couldn’t run “leetcode-try” or “leetcode-submit”.
Hope my experience may help.
Jason Sun notifications@github.com于2019年9月23日 周一19:30写道:
If you want a full url-debug trace, I can provide it here.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kaiwk/leetcode.el/issues/38?email_source=notifications&email_token=AAOSBM35HJ7YAC2TILOW2PTQLFGSLA5CNFSM4IY76X4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7MSKOA#issuecomment-534324536, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOSBMZIPBP2BJWOCQI5I5TQLFGSLANCNFSM4IY76X4A .
Hey guys, @jasonsun0310 @ShuoLearner
I think I have fixed the bug, we need (require 'subr-x)
before we can use if-let
, I have tested latest version(leetcode-20190924.353
) with emacs -Q
.
It works now! Thanks!
Wang Kai notifications@github.com于2019年9月24日 周二12:01写道:
Hey guys, @jasonsun0310 https://github.com/jasonsun0310 @ShuoLearner https://github.com/ShuoLearner
I think I have fixed the bug, we need (require 'subr-x) before we can use if-let, I have tested latest version(leetcode-20190924.353) with emacs -Q.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/kaiwk/leetcode.el/issues/38?email_source=notifications&email_token=AAOSBM73C6QOY4IKZUNIVP3QLI2XHA5CNFSM4IY76X4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7O4HCY#issuecomment-534627211, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOSBMZSCP7RYOMZWEFMAG3QLI2XHANCNFSM4IY76X4A .
it still doesn't work on my end..
On Tue, Sep 24, 2019 at 5:52 PM Shuo Wang notifications@github.com wrote:
It works now! Thanks!
Wang Kai notifications@github.com于2019年9月24日 周二12:01写道:
Hey guys, @jasonsun0310 https://github.com/jasonsun0310 @ShuoLearner https://github.com/ShuoLearner
I think I have fixed the bug, we need (require 'subr-x) before we can use if-let, I have tested latest version(leetcode-20190924.353) with emacs -Q.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub < https://github.com/kaiwk/leetcode.el/issues/38?email_source=notifications&email_token=AAOSBM73C6QOY4IKZUNIVP3QLI2XHA5CNFSM4IY76X4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7O4HCY#issuecomment-534627211 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAOSBMZSCP7RYOMZWEFMAG3QLI2XHANCNFSM4IY76X4A
.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kaiwk/leetcode.el/issues/38?email_source=notifications&email_token=AFIDNXOAVP56U2Q25IGD7SLQLKD3BA5CNFSM4IY76X4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7P5RZY#issuecomment-534763751, or mute the thread https://github.com/notifications/unsubscribe-auth/AFIDNXP2HIJXZGYAX3GZTX3QLKD3BANCNFSM4IY76X4A .
-- Daqian Sun
Tel:607-379-5149 Department of Mathematics Department of Economics Cornell University
@jasonsun0310 did you tried emacs -Q
?
put this in *scratch*
buffer, and eval-buffer
.
(setq package-archives '(("gnu" . "your gnu mirror")
("melpa" . "your melpa mirror")))
(package-initialize)
Execute command package-reinstall
leetcode, also try list-packages
to see package version.
I tried the "emacs -Q" approach, but still fail to login. (I’m working on OSX, emacs 26.2)
@jasonsun0310 did you tried
emacs -Q
?put this in
*scratch*
buffer, andeval-buffer
.(setq package-archives '(("gnu" . "your gnu mirror") ("melpa" . "your melpa mirror"))) (package-initialize)
Execute command
package-reinstall
leetcode, also trylist-packages
to see package version.
I check the trace which says that leetcode problems refresh is a void definition... I am using emacs 26.3 and installed this package from Melpa.
I don't know how to interpret these messages.