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

Line 6: IndentationError: expected an indented block

Open leafonsword opened this issue 4 years ago • 1 comments

🐛 Bug Report

When I press "test",this error occirs:

Line 6: IndentationError: expected an indented block
IndentationError: expected an indented block
    import sys
Line 6  (Solution.py)

image

Your Environment

  • os: Win10
  • extension settings: Default
  • nodejs version: 16.5.0
  • vscode version: 1.58.2
  • extension version: 0.18.0

leafonsword avatar Jul 23 '21 11:07 leafonsword

I had the same problem. You need to move this line # @lc code=end to the end of file. They really should give some hints for beginners.

helsonxiao avatar Aug 30 '21 05:08 helsonxiao