Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal print is shifted #745

Open
michal-gora opened this issue Oct 29, 2024 · 3 comments
Open

Terminal print is shifted #745

michal-gora opened this issue Oct 29, 2024 · 3 comments
Labels

Comments

@michal-gora
Copy link

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

@atirut-w
Copy link

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.

@michal-gora
Copy link
Author

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
Copy link
Author

michal-gora commented Oct 31, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants