vscode-leetcode icon indicating copy to clipboard operation
vscode-leetcode copied to clipboard

DeprecationWarning: The punycode' module is deprecated.

Open mrajancsr opened this issue 1 year ago • 1 comments

🐛 Bug Report

Unable to run LeetCode in VsCode in Mac. Im getting an error: (node:98899) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) (node:98899) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

  • Waiting session result

To Reproduce

Install LeetCode in VsCode and run Submit or Test your current solution. The problem occurs when you try to test the solution

Expected behavior

Expected to see results from test cases

Extension Output

(node:99959) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) (node:99959) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

  • Sending code to judge (node:99972) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) (node:99972) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency [ERROR] session expired, please login again [code=-1]
  • Sending code to judge (node:207) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) (node:207) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency [ERROR] session expired, please login again [code=-1]

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

Your Environment

MacOS Ventura with M1 Max

  • os: MacOS Ventura M1 max Darwin ARm 64
  • extension settings:
  • nodejs version: 20.9.0
  • vscode version: 1.9.1.1
  • extension version:

mrajancsr avatar Jul 20 '24 20:07 mrajancsr

The reason you cannot run the code properly is that your session has expired. Please refer to the ERROR section in the output for more details.

tomoyachen avatar Jul 25 '24 09:07 tomoyachen