jorgenschaefer / elpy

Emacs Python Development Environment
GNU General Public License v3.0
1.9k stars 262 forks source link

*Python Check* buffer showing weird characters #2026

Closed djzurawski closed 1 year ago

djzurawski commented 1 year ago

Summary

Just installed Emacs 29.1. When elpy-check finds problems the buffer that opens contains weird characters (I think something to do with coloring that isnt working). I dont know if this an Emacs issue, elpy issue, or elpy interacting with Emacs issue.

Here's an example

Compilation started at Wed Aug  2 15:06:34

flake8 /home/dan/Projects/my-project/my-file.py
/home/dan/Projects/my-project/my-file.py:36:29: W605 invalid escape sequence '\.'
/home/dan/Projects/my-project/my-file.py:47:89: E501 line too long (90 > 88 characters)
/home/dan/Projects/my-project/my-file.py:62:9: E722 do not use bare 'except'
/home/dan/Projects/my-project/my-file.py:67:9: E722 do not use bare 'except'
/home/dan/Projects/my-project/my-file.py:160:89: E501 line too long (89 > 88 characters)
/home/dan/Projects/my-project/my-file.py:167:89: E501 line too long (108 > 88 characters)
/home/dan/Projects/my-project/my-file.py:186:89: E501 line too long (107 > 88 characters)
/home/dan/Projects/my-project/my-file.py:212:89: E501 line too long (115 > 88 characters)
/home/dan/Projects/my-project/my-file.py:236:89: E501 line too long (100 > 88 characters)
/home/dan/Projects/my-project/my-file.py:243:89: E501 line too long (94 > 88 characters)
/home/dan/Projects/my-project/my-file.py:291:89: E501 line too long (101 > 88 characters)
/home/dan/Projects/my-project/my-file.py:352:89: E501 line too long (104 > 88 characters)
/home/dan/Projects/my-project/my-file.py:372:89: E501 line too long (97 > 88 characters)

Compilation exited abnormally with code 1 at Wed Aug  2 15:06:34

Steps to reproduce

  1. Install Emacs 29.1
  2. Install elpy
  3. run elpy-check on buffer which will find issues

My configuration

OS

Ubuntu 20.04

Result of (elpy-config)

Emacs.............: 29.1
Elpy..............: 1.35.0
Virtualenv........: None
Interactive Python: python3 3.10.2 (/home/dan/Projects/my-project/.venv/bin/python3)
RPC virtualenv....: rpc-venv (/home/dan/.emacs.d/elpy/rpc-venv)
 Python...........: python 3.8.10 (/home/dan/.emacs.d/elpy/rpc-venv/bin/python)
 Jedi.............: 0.18.2 (0.19.0 available)
 Autopep8.........: 2.0.2
 Yapf.............: 0.32.0 (0.40.1 available)
 Black............: 23.3.0 (23.7.0 available)
Syntax checker....: flake8 (/home/dan/.local/bin/flake8)

Elpy configuration in my init.el

(elpy-enable)
(setq elpy-rpc-timeout 5)
gopar commented 1 year ago

Those are color codes. Looks like your compilation buffer isn't setup to interpret those so it just prints them out. Google around to either:

A) Strip them out entirely if you don't care about coloring B) Make it so that it will color the buffer.

Closing since this is not elpy issue. Please re-open if this is not the case