Emacs 24, Rope rename: "compute rename changes" then becomes unresponsive

When I use Rope to refactor Python, rename the class name, the minibuffer says "compute rename changes ...", and the machine becomes slow without even responding.

Am I missing any configs, or is this an Emacs 24 / Rope bug?

My configs:

(require 'pymacs) (autoload 'pymacs-apply "pymacs") (autoload 'pymacs-call "pymacs") (autoload 'pymacs-eval "pymacs" nil t) (autoload 'pymacs-exec "pymacs" nil t) (autoload 'pymacs-load "pymacs" nil t) (pymacs-load "ropemacs" "rope-") ;;(pymacs-load "pysmell.emacshelper" "pysmell-") (setq ropemacs-enable-autoimport t) 
+4
source share
2 answers

Press ctrl + x, p, o or : RopeOpenProject to force the power rope to create a .ropeproject in the current directory.

if you do not have .ropeproject

rope will search in your home directory, so the machine becomes slow without even answering.

see https://github.com/klen/python-mode#rope-completion-is-very-slow

0
source

As mentioned in @ user1627021, refactoring using a rope can sometimes be slow, and it is sometimes difficult to use ropemacs because it blocks Emacs even when the actual work is done in a Python process. There is another plugin for Emacs called traad . Unlike ropemacs, it does not block during refactoring. It is probably worth a try if you work with a large code base.

0
source

Source: https://habr.com/ru/post/1391224/


All Articles