Open fxleblanc opened 8 years ago
I'm seeing two sets of symbols that you shouldn't be seeing, here. The '�' symbol is a marker for an illegal (or at least undefined) unicode symbol, which suggests that the buffer is expected to contain UTF-8 encoded text, but is either receiving corrupted data or (8-bit or more) text in a different encoding. The "[30;43m" strings look awfully like ansi terminal colour codes.
This is probably a more general emacs problem related to display of colour codes, but I lack the experience to diagnose it definitively. You might try googling "emacs ansi colour display problems" to see if you can find relevant advice. Other that that, you should probably update your issue with your emacs version, OS, and language encoding.
I found it! I simply need to call this snippet on the compilation buffer to display colors:
(defun display-ansi-colors ()
(interactive)
(let ((inhibit-read-only t))
(ansi-color-apply-on-region (point-min) (point-max))))
Is there a hook in phpunit that I can leverage for this? Here's the link for the discussion: https://stackoverflow.com/questions/23378271/how-do-i-display-ansi-color-codes-in-emacs-for-any-mode
Do you have an opensource project with which I can reproduce this worries?
@nlamirault sure, https://github.com/MaisonLogicielLibre/Website
@nlamirault Since phpunit.el
uses the standard *compilation*
buffer, you can use the standard compilation-filter-hook
, see this blog post
Example: