Open arael opened 2 years ago
Does this help?
(use-package ansi-color
:ensure nil
:defer t
:hook (compilation-filter . gopar/colorize-compilation-buffer)
:init
;; https://stackoverflow.com/questions/3072648/cucumbers-ansi-colors-messing-up-emacs-compilation-buffer
(defun gopar/colorize-compilation-buffer ()
"Colorize the output from compile buffer"
(toggle-read-only)
(ansi-color-apply-on-region (point-min) (point-max))
(toggle-read-only)))
Summary
I have a problem with the elpy output when I run the tests.
A lot of non printable shell characters are shown in the traceback and make the output unreadable.
Here is the part of the output, it is much longer than this. The non printable characters make it difficult to understand what is going on in the Python traceback log.
Steps to reproduce
Just run a test and make it fail. Press C-c C-t and scroll. The non printable characters should be there.
My configuration
OS
Ubuntu 20.04.3 LTS
Result of
(elpy-config)
Elpy configuration in my init.el