-
Notifications
You must be signed in to change notification settings - Fork 664
Cannot run Test through extension in LeetCode endpoint #455
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
This comment has been minimized.
This comment has been minimized.
I also meet this problem just now, and it seems like all the problems can not run Test |
Yes same with me, using the latest version of the extension but still problem exists |
@jdneo I found that it seems like this condiction not passed when runing test. |
@lintuming Thank you for investigating. Seems LeetCode changes its response AGAIN!!!! That's what I could not foresee. Will try to update the cli recently |
Sorry to add to the noise guys, but yeah I have the same issue as well :)
|
This bug is because LeetCode updated the content of the response body, so the CLI part is broken. Before I release the fix, you can manually modify the file at: |
@jdneo It's working now, Thanks |
Hey just noticed the last release was only 2 days ago. Any idea when you might roll out the next release including this fix? |
@tinvaan I've released a new version yesterday. |
updated by @jdneo:
For anyone has this issue, please see #455 (comment) as a workaround.
Keep getting error message:
c:\Users\Erbo.vscode\extensions\shengchen.vscode-leetcode-0.15.6\node_modules\vsc-leetcode-cli\lib\commands\test.js:93
results[0].stdout = results[0].stdout.slice(1, -1).replace(/\n/g, '\n');
^
TypeError: Cannot read property 'slice' of undefined
at c:\Users\Erbo.vscode\extensions\shengchen.vscode-leetcode-0.15.6\node_modules\vsc-leetcode-cli\lib\commands\test.js:93:45
at _cb (c:\Users\Erbo.vscode\extensions\shengchen.vscode-leetcode-0.15.6\node_modules\vsc-leetcode-cli\lib\plugins\retry.js:45:21)
at Queue.onDone (c:\Users\Erbo.vscode\extensions\shengchen.vscode-leetcode-0.15.6\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:304:14)
at Queue.workerRun (c:\Users\Erbo.vscode\extensions\shengchen.vscode-leetcode-0.15.6\node_modules\vsc-leetcode-cli\lib\queue.js:37:12)
at Immediate. (c:\Users\Erbo.vscode\extensions\shengchen.vscode-leetcode-0.15.6\node_modules\vsc-leetcode-cli\lib\queue.js:47:36)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
The text was updated successfully, but these errors were encountered: