5

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

George B.
  • 465
  • 4
  • 14

2 Answers2

2

elpy and jedi each offer auto-completion and are conflicting with each other. Try turning one off and loading a new python buffer.

al0
  • 287
  • 2
  • 12
1

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.

ig-perez
  • 11
  • 3