-
Notifications
You must be signed in to change notification settings - Fork 96
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
submission gave red flag even the solution was Accepted #29
Comments
Hey @frankbearzou, Unfortunately, the observers do not work 100%. Therefore, in rare cases the code may not be pushed to GitHub although submission to LeetCode was successful. I have not found a solution so far. I have described it in the README. Lines 45 to 51 in ec9deb5
We have added the manual synchronization button. You can use that on if such issues occur in the future. You can also try to reload the page. |
Good to hear manual push button is working :) It is fine to press "Run" first. It is only important to wait after you pressed "Submit". Do not click anything while the spinner is moving. I have again tried to reproduce but I had no luck. Can you describe more details? Does this issue always happen? 🤔 Can you check the logs in Chrome console (opening using F12). If there is an issue with the script, the error may be printed there. |
I will try and add more logs. here is one. Payload: |
OK thanks, I will check |
You are right @frankbearzou , the problem could be that it takes too long to submit the solution. The script polls for 10 seconds after pressing the "submit" button if the solution is valid. If it takes longer, pushing to GitHub is aborted. |
if I press the the button, it will take less than 10 seconds. very strange. |
Describe the bug
the extension shows a red flag even the solution was Accepted.
To Reproduce
Steps to reproduce the behavior:
find a question that you already solved before. so the old code will retrieved by LeetCode.
Expected behavior
Accepted solution should have green flag and submitted to GitHub. But now shows red flag without commit to Github.
Screenshots
The text was updated successfully, but these errors were encountered: