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

Colors in Aspire logs are missing #119

Open
tjementum opened this issue Apr 18, 2024 · 4 comments
Open

Colors in Aspire logs are missing #119

tjementum opened this issue Apr 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@tjementum
Copy link

Small visual bug. After upgrading to Rider 2024.1 and Aspire PlugIn 0.5.0, I've noticed that there are no colors on, e.g., info and warn in the Aspire Log files.

Here are two screenshots for running using the PlugIn vs. just running with the .NET project.

Running with .NET default (without using PlugIn):

CleanShot 2024-04-18 at 10 47 11

Running with using PlugIn (notice no colors):

CleanShot 2024-04-18 at 10 48 39

@rafaelldi rafaelldi added the bug Something isn't working label Apr 18, 2024
@tjementum
Copy link
Author

Any update on this? I know it’s just a visual thing, but it used to work, and I would speculate that it’s a simple fix.

@rafaelldi
Copy link
Collaborator

There are no updates, and unfortunately it's not the easy one. It depends on how the IDE handles process output, and there is no convenient API to receive output with colors

@tjementum
Copy link
Author

There are no updates, and unfortunately it's not the easy one. It depends on how the IDE handles process output,

Hmm… But the colors are not missing in the IDE, but in the Aspire Dashboard. I’m not even sure how the Rider add-in can have an effect on how the Aspire Dashboard renders log output, but that is the case.

Again, I’m pretty sure this used to work sometime before April 18th, when I reported this.

@mtrainham
Copy link

mtrainham commented Sep 21, 2024

Can this please be addressed? If I debug the apphost project without this plugin, I get colors in console logs but can't hit breakpoints or view console logs within the IDE. If I debug with this plugin, the console logs in the IDE and the aspire dashboard don't have any formatting or colors. This has to be just a random bug, given the colors come through when debugging apphost without the plugin.

A little more information. When debugging with this plugin, the console output in the Debug window works perfectly. However, in the Aspire section of the Services window, when viewing an individual resource (not the apphost), the console output there and in the aspire dashboard is messed up beyond just colors and formatting. It doesn't show console logs as they happen and instead shows them all at once when the application ends and sometimes is just missing some with blank lines. The structured logs through open telemetry in aspire dashboard have the same issue. These issues don't exist when debugging the aspire host without the plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants