Open xuehy opened 3 years ago
M-x elpy-goto-definitionand M-.lead to different behaviors on emacs 27.1
M-x elpy-goto-definition
M-.
With C-h b, M-. is bind to xref-find-definitions and the document says:
C-h b
xref-find-definitions
If you use an Emacs version superior to 25, Elpy will define the necessary backends for the xref package.
But M-x elpy-goto-definitionand M-.lead to different behaviors. The result of M-x elpy-goto-definition seems more accurate.
macos big sur 11.2.1
(elpy-config)
Elpy Configuration Emacs.............: 27.1 Elpy..............: 1.35.0 Virtualenv........: None Interactive Python: python3 3.8.2 (/usr/bin/python3) RPC virtualenv....: rpc-venv (/Users/xuehongyang/.emacs.d/elpy/rpc-venv) Python...........: python3 3.8.2 (/Users/xuehongyang/.emacs.d/elpy/rpc-venv/bin/python3) Jedi.............: 0.17.2 Rope.............: 0.18.0 Autopep8.........: 1.5.4 (1.5.5 available) Yapf.............: 0.30.0 Black............: 20.8b1 Syntax checker....: flake8 (/Users/xuehongyang/.emacs.d/elpy/rpc-venv/bin/flake8)
(elpy-enable) (setq elpy-syntax-check-command "/Users/xuehongyang/.emacs.d/elpy/rpc-venv/bin/flake8") (setq elpy-rpc-python-command "python3")
Same issue, M-. wants a TAGS file -- even if the symbol is completely local.
Same issue in Emacs 28.1
Summary
M-x elpy-goto-definition
andM-.
lead to different behaviors on emacs 27.1Steps to reproduce
With
C-h b
,M-.
is bind toxref-find-definitions
and the document says:But
M-x elpy-goto-definition
andM-.
lead to different behaviors. The result ofM-x elpy-goto-definition
seems more accurate.My configuration
OS
macos big sur 11.2.1
Result of
(elpy-config)
Elpy configuration in my init.el