JetBrains / aspire-plugin

.NET Aspire Plugin for JetBrains Rider
https://plugins.jetbrains.com/plugin/23289-aspire
MIT License
58 stars 0 forks source link

Colors in Aspire logs are missing #119

Open tjementum opened 5 months ago

tjementum commented 5 months ago

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

tjementum commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 1 week ago

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