Whats up with the tab indentation errors that are not errors

I keep getting tab indentation errors in python dat scripts, when there are zero tab indentation errors in the code, its seems rather buggy, whats up with that?
thank you

it is definitely buggy. If i delete the very same lines, and replace them with new ones in the exact same positions, the errors go away, buggy buggy buggy

I would not call it a bug, but highlight all text in a dat. You probably have some tab and space mixups. You have to commit to one for python to work. This happens most of the time if you copy scripts from the browser. (No shame in that.)

1 Like

@alphamoonbase Wieland, I didnt take script from the browser sir, I typed it letter by letter. However I may have copied and pasted from my own code in the DAT to other parts of the DAT script area. Maybe that made it

@alphamoonbase I still find it so inestable

i guess i will get used to it, thank you for your help @alphamoonbase :slight_smile:

If you or another developer on your team are sometimes editing in a third-party editor that could cause issues as well.

There are settings for example in VS Code (and probably other editors) to specify if your file should be in space or tab mode for indents.

So, that can cause issues, especially when you start copy-pasting from the editor to DATs, if your editor is set to a style that is different than what you type by yourself in DATs.

It’s not a bug and as @alphamoonbase explained, you’d encounter the issue outside of the TD context.

@JetXS got you Michel, I think i will get used to it :wink: all best :wink:

Note that you can also use .editorconfig files to make sure everyone is using the same style. It is not forcing a developer to use a style, but most editors will read from that file and convert behind the scene, IIRC. https://editorconfig.org/

1 Like