NorfairKing / feedback

Declarative feedback loop manager
https://cs-syd.eu/posts/2022-11-14-automate-your-feedback-loops-using-feedback
GNU General Public License v3.0
61 stars 10 forks source link

`feedback` not respecting terminal color codes of commands being run. #25

Closed erlandsona closed 1 year ago

erlandsona commented 1 year ago

Curious if we're just missing a flag or if that's a known edge case?

NorfairKing commented 1 year ago

@erlandsona I'm not sure what you mean. Can you show me?

erlandsona commented 1 year ago
Here's the underlying process without feedback: No feedback With feedback
Screenshot from 2023-06-01 12-07-45 Screenshot from 2023-06-01 12-07-34

Notice how on the left stack build has highlighted the errors in red. But Feedback seems to be ignoring this colored output.

It's not make in this case because stack is running underneath the make on the left and the colors are retained.

Apologies for my Yellow base font color (lot of people hate my colorscheme but :shrug: :smile: )

NorfairKing commented 1 year ago

Have you tried running stack with --color? Maybe stack does something tricky to figure out if it's connected to a terminal or something else.

NorfairKing commented 1 year ago

Also keep in mind that stack already has --file-watch :D

erlandsona commented 1 year ago

Ha! That did the trick brilliant! Thanks a ton @NorfairKing !