Emacs + Rope + Python produces lisp error

I'm trying to use autocomplete Ropemacs in Emacs, but I keep getting a debugger error:

Debugger entered--Lisp error: (void-function rope-completions) (rope-completions) eval((rope-completions)) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) 

The rope-completions symbol does not have documentation from Ch S. It appears only once, in auto-complete-config. I downloaded the latest ropemacs, ropemode, pymacs, python-rope and probably bit any consistent system I had.

When I remove this function from the configuration files, the autocomplete turns the cursor to red when it tries to complete. I cannot find a link to this function anywhere in my system.

Autocomplete works fine for me in Lisp. How can I get auto-complete and Rope to work together to give auto-complete for Python in Emacs?

EDIT: I do not see vertex fidelity determination with Ch f. Here is the output of my Pymacs buffer:

 <23 (version "0.24-beta2") >45 eval pymacs_load_helper("ropemacs", "rope-") <278 (return '(progn (pymacs-defuns '(0 rope--OldProgress nil 1 rope--LispProgress nil 2 rope-LispUtils nil 3 rope-message nil 4 rope--lisp-name nil 5 rope--load-ropemacs nil 6 rope--started-from-pymacs nil 7 rope-occurrences-goto "" 8 rope-occurrences-next "")) (pymacs-python 9))) >45 eval pymacs_load_helper("ropemacs", "rope-") <288 (return '(progn (pymacs-defuns '(10 rope--OldProgress nil 11 rope--LispProgress nil 12 rope-LispUtils nil 13 rope-message nil 14 rope--lisp-name nil 15 rope--load-ropemacs nil 16 rope--started-from-pymacs nil 17 rope-occurrences-goto "" 18 rope-occurrences-next "")) (pymacs-python 19))) >51 eval free_python(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19) <13 (return nil) >45 eval pymacs_load_helper("ropemacs", "rope-") <279 (return '(progn (pymacs-defuns '(19 rope--OldProgress nil 9 rope--LispProgress nil 8 rope-LispUtils nil 7 rope-message nil 6 rope--lisp-name nil 5 rope--load-ropemacs nil 4 rope--started-from-pymacs nil 3 rope-occurrences-goto "" 2 rope-occurrences-next "")) (pymacs-python 1))) 
+4
source share
2 answers

The only way I could do in the end was to ignore all the other tutorials and just use Emacs For Python Github. It works very well, combines a lot of packages that I wanted to use anyway, and is easy enough to configure so that it does not ruin my existing bindings and settings.

+1
source

Do you have something similar in emacs settings? (see also: agr / ropemacs / overview - Bitbucket )

 (require 'pymacs) (pymacs-load "ropemacs" "rope-") 

If you have this, check that you have a ropemacs command, such as rope-open-project ( Cx po ).

Note that rope-completions is defined as a python function, so you won't see its definition in the elisp source.

You will see this when you press Ch f rope-completions RET (not Ch S ) if you load ropemacs correctly.

 rope-completions is an interactive Lisp function. (rope-completions &rest ARGUMENTS) It interfaces to a Python function. 
+4
source

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


All Articles