Skip to content

生成的 python3problemXXX.py 文件中存在 SyntaxWarning,导致debugging无法进行 #44

Description

@Xinchengyuan

🐛 Bug Report

大佬你好,感谢你开发并维护这个非常实用的 LeetCode 调试插件!如题,试了几道题,点击debug或debug input 后 termnal 会出现这样的 SyntaxWarning:

cd /Users/test/.leetcode ; /usr/bin/env /usr/local/bin/python3 /Users/test/.vscode/extensions/ms-python.debugpy-2025.10.0-darwin-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 55659 -- /Users/test/Library/Application\ Support/Code/User/globalStorage/wangtao0101.debug-leetcode/python3problem633.py /Users/test/.leetcode/633.sum-of-square-numbers.py 5 judgeSquareSum number boolean 633 49368 /Users/test/Library/Application Support/Code/User/globalStorage/wangtao0101.debug-leetcode/python3problem633.py:268: SyntaxWarning: "is" with 'int' literal. Did you mean "=="? if switchfun is 0:

这个警告不仅在终端中显示出来,而且会导致 VSCode debugging session无法正常启动,变量面板闪退或不显示。一个月前我在另一台win10 PC上使用没有问题,可能是Python版本问题导致warning,希望尽快修复🙏

To Reproduce

进入vscode leetcode插件,进入问题,点击debug或 debug input 按钮

Your Environment

  • os: macOS Montery (v12.7.6)
  • vscode version: 1.101.2
  • Python version: 3.13.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions