[Bug] Unexpected identation

This is an error report.


Screenshot of the error


Error details

When copying and pasting the python code to move_bb8_square.py using vi command I got identation problem. The whole file look like not aligned at all with several spaces after each line. I cannot waste my time doing that using the cursor only. Is there a way to fix it? When pasting? Thanks

Oh - this is likely a translation issue between how many “spaces” a tab is in vim as opposed to how many spaces a tab translates to in VSCode.

You should likely instead just copy the code from the lefthand side into the VSCode editor of the file (see the top left box above the
terminal ) instead of using vim.

1 Like

Thank you.
I copied the file content to a VSCode file, deleted the “move_bb8_square.py” from “my_scripts” folder, and them dragged my new VSCode generated file to the same folder.
Now everything works.
I hope people use this for future references.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.