godot-vscode-plugin icon indicating copy to clipboard operation
godot-vscode-plugin copied to clipboard

Terminal print is shifted

Open michal-gora opened this issue 1 year ago • 3 comments

Godot version

4.3.stable

VS Code version

1.94.2

Godot Tools VS Code extension version

2.3.0

System information

Linux Ubuntu (KDE plasma)

Issue description

When printing to the console executing (from VSC using e.g. f5)

print("Hello")
print("World")
print("!")

in e.g. _ready(), each new line is shifted more to the left.

Image example: image image

This is easily reproducible like I described. It is unusable for me, I have to start Godot the normal way, from the Godot editor.

Steps to reproduce

Create a script attached to a node/scene with this code

func _ready():
print("first")
print("second")
print("third")

Execute in VSC (with f5). Look at the terminal output in VSC

michal-gora avatar Oct 29 '24 01:10 michal-gora

Have you changed the line endings anywhere in your workflow? Looks to me like VSCode is expecting CRLF for some reason while Godot is outputting LF, but take it with a grain of salt.

atirut-w avatar Oct 29 '24 03:10 atirut-w

Have you changed the line endings anywhere in your workflow? Looks to me like VSCode is expecting CRLF for some reason while Godot is outputting LF, but take it with a grain of salt.

I have not, but thanks for the info. I will try to change it manually if thats possible.

michal-gora avatar Oct 29 '24 09:10 michal-gora

This seems like a problem with this plugin since even after changing vscode to lf, it didn't work. Maybe an issue related to linux? Can someone else with linux confirm?

michal-gora avatar Oct 31 '24 18:10 michal-gora