jorgenschaefer/elpy

PEP 634 – Structural Pattern Matching not supported

Closed this issue · 3 comments

Summary

The soft keywords match and case are not recognized,
and therefore not colored or indented by elpy. The code
has to be manually indented with four spaces.

Steps to reproduce

Open an empty Python file and try indenting a match/case-statement.

My configuration

OS

Manjaro Linux x86_64

Kernel

5.15.78-1-MANJARO

Result of (elpy-config)

Emacs.............: 28.2
Elpy..............: 1.35.0
Virtualenv........: None
Interactive Python: python3 3.10.8 (/usr/bin/python3)
RPC virtualenv....: rpc-venv (/home/lukas/.emacs.d/elpy/rpc-venv)
 Python...........: python 3.10.8 (/home/lukas/.emacs.d/elpy/rpc-venv/bin/python)
 Jedi.............: 0.18.2
 Autopep8.........: 2.0.0
 Yapf.............: 0.32.0
 Black............: 22.10.0
Syntax checker....: Not found (flake8)

Elpy configuration in my init.el

(use-package elpy
  :init
  (elpy-enable)
  )
(setq elpy-get-info-from-shell t)
(setq python-indent-guess-indent-offset nil)
(setq python-indent-offset 4)
(add-hook 'elpy-mode-hook
	  (lambda () (flymake-mode-off)))

Confirming this impacts me as well (on Ubuntu and 3.10.9)

gopar commented

Sorry, this is a problem with python.el, not elpy.

Elpy is a simply a tool that configures other tools to work together for a better python experience.
Please file a bug report to python.el

Noted, will do. Thanks @gopar