Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs elpy/jedi code completion: popup window not working properly

I am using elpy/jedi for code completion. As you can see in the images, when the popup opens is broken. It looks like two different windows are open at the same time (could the second one be auto-complete ???). The one is python suggestions and the other seems like other kind of suggestions.

Nothing weird in my setup:

; enable elpy
(package-initialize)
(elpy-enable)

;; jedi
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t)                 ; optional

I tried to disable other stuff e.g. ac-complete-clang or auto-complete-c-headers but does not seem to be the issue.

Also as you can see in the last image, suggestions for list 'l' are both apply and append (apply overlaps with append: l.applyend).

Any suggestion? Anyone else with a similar issue?

image 1

image 2

image 3

image 3

like image 282
George B. Avatar asked Jun 07 '16 20:06

George B.


1 Answers

In case somebody is facing this issue in 2020 I solved it by disabling fci-mode. There is an issue with company-mode as indicated here.

If it is your case and still need a vertical line at col 80 you can use display-fill-column-indicator-mode which is included by default since Emacs 27.

like image 167
ig-perez Avatar answered Oct 06 '22 01:10

ig-perez