Open kourosh2 opened 2 years ago
I have the same problem.
After some debugging I think the problem comes from this change https://github.com/emacs-mirror/emacs/commit/e27385ec372b36822958ebed6792ca806b1a0c3d Not sure how to fix it yet though
Ok, the problem is that Elpy overwrites python-shell-send-file
with its own version that calls python-shell-send-string
. But in 28.1 python-shell-send-string
can call python-shell-send-file
so the program enters an infinite recursion that triggers the max-list-eval-depth
.
Quick fix is adding (setq elpy-shell-echo-output nil)
to init.el since this bypass overwriting python-shell-send-file
Many thanks @jotsif. That fixes the issue for the time being.
Hi, First of all thank you for developing and maintaining elpy. I cannot emphasize how important elpy is in my workflow and how much I appreciate your efforts.
Today I updated my emacs to version 28.1-3 and after updating, I am not able to run
elpy-shell-send-region-or-buffer
(bound to C-c C-c key stroke). More specifically, I can run the code line-by-line but cannot run a region (or the whole buffer). It gives meLisp nesting exceeds ‘max-lisp-eval-depth'
error.python-shell-send-region
however is working with no problem.My configuration
Result of
(elpy-config)
Elpy configuration in my init.el