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

External Editor Console Output format is wrong with many whitespaces (Godot 4.3 dev 6) C# #91603

Closed
MatthiasBae opened this issue May 5, 2024 · 9 comments · Fixed by #92158
Closed

Comments

@MatthiasBae
Copy link

Tested versions

  • Tested in 4.2.1 (Working fine)
  • Tested in 4.3 dev 6 (Not working)

System information

Godot v4.3. dev6.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 31.0.15.5222) - 13th Gen Intel(R) Core(TM) i9-13900KF (32 Threads)

Issue description

When calling GD.Print("blabla") in C# in Jetbrains Rider 2024.1 and using the Godot 4.3 dev 6 version the format of the ouput is totally messed up and has many whitespaces.

Project in Godot 4.3 dev 6 (wrong formatting of output)
image

The same project in Godot 4.2.1 (formatting the output correct)
image

Steps to reproduce

  1. Create a script in Godot and write a GD.Print statement in the _Process function.
  2. Open the external editor
  3. Click on "Build & Debug" in the external editor
  4. See the output in the console

Minimal reproduction project (MRP)

OutputTest.zip

@van800
Copy link
Contributor

van800 commented May 18, 2024

Would it happen, if you run from windows console?

@viksl
Copy link
Contributor

viksl commented May 18, 2024

I can confirm this, same happens with errors from godot, I assume any feedback from godot ends up like this.

If I run the project from Godot then in both Godot editor and in the windows console the prints as well as the errors look normal, no extra spaces.

@MatthiasBae
Copy link
Author

Would it happen, if you run from windows console?

It just happens in the Rider Output Terminal. In Godot or Windows Terminal, I do not have this problem.

@van800
Copy link
Contributor

van800 commented May 20, 2024

Just checked.
Reproduces on Windows, not on Mac.
Reproduces with "GD.Print", not with "Console.WriteLine".

The problem specifically appears in Godot_v4.3-dev6, and it not present in Godot_v4.3-dev5.

@van800
Copy link
Contributor

van800 commented May 20, 2024

Probably introduced in #91147

@akien-mga
Copy link
Member

CC @bruvzg @godotengine/dotnet

@bruvzg
Copy link
Member

bruvzg commented May 20, 2024

Is it reproducible if you use .console.exe instead of main exe?

@MatthiasBae
Copy link
Author

MatthiasBae commented May 20, 2024

Looks fine when I use the Godot Engine_console.exe
image

image

@viksl
Copy link
Contributor

viksl commented May 20, 2024

Confirming here, the output looks fine in the console but not in Rider.

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

Successfully merging a pull request may close this issue.

6 participants