Skip to content

Troubleshooting

Sheng Chen edited this page Feb 13, 2019 · 4 revisions

This document provides the information needed to troubleshoot common errors of LeetCode for VS Code extension.

🤔 The LeetCode Explorer Icon Is Not Showing

Reason

The LeetCode Explorer is located in the customized activity bar, which is supported in VS Code 1.23.0+.

Solution

Try to update the VS Code to the latest version.

🤔 Got Error: command 'leetcode.xxx' not found

Reason

This means the extension is failed to start up. Mostly this is because the requirement is not satisfied

Solution

Check your installed Node.js version. If it's lower than 8, please try to upgrade it.

🤔 Cannot Sign in

Reason

There are multiple factors causing the user not able to sign in the extension. Mostly the reason is that the user uses wrong endpoint.

Note: The accounts of different LeetCode endpoints are not shared.

Solution

Try to switch to the correct endpoint that you want to use.

🤔 Got HTTP error [code=404] When Submitting the Answer

Reason

Users cannot submit code until they have the email or phone verified in LeetCode.

Solution

Try to verify your account through E-mail or phone in leetcode.com or leetcode-cn.com.