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

command not escaped

Open ICHx opened this issue 3 years ago • 1 comments

System:

Version: 1.63.2
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:38:17.605Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin arm64 21.5.0

Error Output:

➜  .leetcode  cd ~/.leetcode ; /usr/bin/env /opt/homebrew/bin/python3 ~/.vscode/extensions/ms-python.python-2022.4.1/pythonFiles/lib/python/debugpy/launcher 51786 -- "~/Library/Application Support/Code/User/globalStorage/wangtao0101.debug-leetcode/python3problem121.py" ~/.leetcode/src/Q121bestTimeToBuyAndSellStock.py [7,1,5,3,6,4] maxProfit number[] number 121 51259 
zsh: no matches found: [7,1,5,3,6,4]

The generated command line should escape the test case.

ICHx avatar Jul 31 '22 13:07 ICHx

Hi, I don't think this issue is caused by this plug-in, could you help to try:

  1. Disable "Delete Temporary Contents" in the extension setting
  2. Run the debug command provided by this plug-in and then you should be able to see a temporary file named "leetcode-main.cpp"
  3. Debug the "leetcode-main.cpp" with your usual debugging process to see if the issue still exist

xavier-cai avatar Sep 19 '22 10:09 xavier-cai