LeetCode-OpenSource/vscode-leetcode

Error: Command "wsl wslpath,-u,""C://Program Files//nodejs//node.exe""" failed with exit code "1".

Opened this issue ยท 0 comments

๐Ÿ› Bug Report

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior.

Expected behavior

Can not log in my Leetcode account, the nodejs.## ๐Ÿ› Bug Report

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior.

Expected behavior

Can not log in my Leetcode account, the nodejs.exe env path is correct and Error info see BELOW

Extension Output

appear same error :
Usage:
-a force result to absolute path format
-u translate from a Windows path to a WSL path (default)
-w translate from a WSL path to a Windows path
-m translate from a WSL path to a Windows path, with '/' instead of ''
//ERROR HERE
EX: wslpath 'c:\users'
wslpath: Invalid argument
Error: Command "wsl wslpath,-u,""C://Program Files//nodejs//node.exe""" failed with exit code "1".
//ERROR HERE
Paste here the LeetCode extension log from output channel.

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

Your Environment

  • OS: windows11
  • extension settings:
    "workbench.colorTheme": "Gruvbox Material Dark",
    "leetcode.endpoint": "leetcode-cn",
    "leetcode.defaultLanguage": "cpp",
    "leetcode.workspaceFolder": "D:\LeetCode",
    "leetcode.useWsl": true,
    "github.copilot.editor.enableAutoCompletions": true,
    "leetcode.filePath": {
    "default": {
    "folder": "",
    "filename": "${id}.${kebab-case-name}.${ext}"
    }
    },
    "leetcode.nodePath": "C:\Program Files\nodejs\node.exe"
  • nodejs version: v20.13.1.
  • vscode version: 1.89.1
  • extension version: 0.18.2