Skip to content

[ERROR] Not supported language #352

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

Closed
Zhuoli opened this issue Jun 20, 2019 · 4 comments
Closed

[ERROR] Not supported language #352

Zhuoli opened this issue Jun 20, 2019 · 4 comments

Comments

@Zhuoli
Copy link

Zhuoli commented Jun 20, 2019

🐛 Bug Report

Start from this afternoon, I keeps getting this error from all of my PCs and Mac.
Error: Command "node "C:\Users\XXX.vscode\extensions\shengchen.vscode-leetcode-0.15.1\node_modules\vsc-leetcode-cli\bin\leetcode",show,193,-c,-l,csharp" failed with exit code "0". Please open the output channel for details.

To Reproduce

Click on "Code now".

Expected behavior

Error pops up when click on "Code Now", and all kinds of languages except "Bash" is shown as not supported.

Extension Output

Error: Command "node "C:\Users\XXX.vscode\extensions\shengchen.vscode-leetcode-0.15.1\node_modules\vsc-leetcode-cli\bin\leetcode",show,193,-c,-l,csharp" failed with exit code "0". Please open the output channel for details.

[ERROR] Not supported language "csharp"
[WARN] Supported languages: bash

Guidance: Press Ctrl+Shift+U, and toggle the channel to LeetCode.

Your Environment

  • os: Issue exist on both Windows and MacOS
  • extension settings:
  • nodejs version: v10.15.3
  • vscode version: 1.35.1
  • extension version:
@Vigilans
Copy link
Contributor

The problem 193 is [Valid Phone Number](https://leetcode.com/problems/valid-phone-numbers/), and it indeed only supports bash:
image

What is the original problem you want to solve?

@jdneo jdneo added the need more info Further information is requested label Jun 20, 2019
@jdneo
Copy link
Member

jdneo commented Jun 20, 2019

@Zhuoli If you want to solve this problem in bash, you can reset the setting leetcode.defaultLanguage.

@Zhuoli
Copy link
Author

Zhuoli commented Jun 20, 2019

Thanks for the explanation, later I realized that not all the problems support C# language; does that mean for problem 193 it only support Bash? And do you have plan to support C# for all the leetcode problems?

@no-response no-response bot removed the need more info Further information is requested label Jun 20, 2019
@jdneo
Copy link
Member

jdneo commented Jun 21, 2019

Hi @Zhuoli,

You can see that the LeetCode official site only support bash for Problem No. 193.
image

The language support scope for the extension is just the same as the website. So I guess it's actually a question that the LeetCode official team could give an answer.

Since it's not an issue actually, I'm closing it for now.

Thanks.

@jdneo jdneo closed this as completed Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants