Skip to content

deffered error : (error "\"AssertionError()\"") #332

@Muldfox

Description

@Muldfox

SOLVED - Look at the comment down below on how I managed to "fix" my issue.

OS: Windows 10 Pro (Version: 1809, OS Build 17763.292)
Python version: 3.6.7
Emacs version: 26.1
Jedi PIP version: 0.2.7
Jedi MELPA version: 0.13.2

I'm having some oddities with Jedi where when I'm inside a python file (this one in particular has around 200 lines of code), Jedi will give me the completion box/menu after dots, but only in the first lines. When I go to around line 180, all of a sudden the completion/suggestion menu won't appear after dot. That is when I get deffered error : (error "\"AssertionError()\"").

So basically, around line 1-50, I get the completion menu with all kinds of suggestions (that I haven't even used in the file). But around line 180 no menu pops up, and that's where I get the AssertionError.

I pulled up the epc buffer and it just keeps telling me: ERROR:epc:AssertionError().

Example in the beginning of the file where it works:
https://i.imgur.com/q2Oohd7.png

Example further down in the file where it doesn't work:
https://i.imgur.com/Frqw2kQ.png

I have tried re-installing the jedi-server to no avail. It gives the same exact results.
I am really new to emacs, so I'm obviously doing something wrong here.

Here is my init.el file, for reference:
https://pastebin.com/bF3svCkw

Here is the jedi setup info (jedi:show-setup-info):

;; Emacs Lisp version:
(:emacs-version "26.1" :jedi-version "0.2.7" :python-environment-version "0.0.2alpha0")
;; Python version:
((:name "sys" :file nil :version "3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)]")
 (:name "jedi" :file "c:\\Users\\xxxxx\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\jedi\\__init__.py" :version "0.13.2")
 (:name "epc" :file "c:\\Users\\xxxxx\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\epc\\__init__.py" :version "0.0.5")
 (:name "sexpdata" :file "c:\\Users\\xxxxx\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\sexpdata.py" :version "0.0.3"))
;; Command line:
(:virtualenv "c:/Users/xxxxx/AppData/Local/Programs/Python/Python36/python.exe" :virtualenv-version "Python 3.6.7\n")
;; Customization:
((jedi:complete-on-dot . t)
 (jedi:doc-display-buffer . display-buffer)
 (jedi:doc-hook view-mode)
 (jedi:doc-mode . rst-mode)
 (jedi:environment-root)
 (jedi:environment-virtualenv)
 (jedi:get-in-function-call-delay . 1000)
 (jedi:get-in-function-call-timeout . 3000)
 (jedi:goto-definition-config
  (nil nil nil)
  (t nil nil)
  (nil definition nil)
  (t definition nil)
  (nil nil t)
  (t nil t)
  (nil definition t)
  (t definition t))
 (jedi:goto-definition-marker-ring-length . 16)
 (jedi:imenu-create-index-function . jedi:create-nested-imenu-index)
 (jedi:import-python-el-settings . t)
 (jedi:install-imenu)
 (jedi:install-python-jedi-dev-command "pip" "install" "--upgrade" "git+https://github.com/davidhalter/jedi.git@master#egg=jedi")
 (jedi:key-complete .
		    [C-tab])
 (jedi:key-goto-definition .
			   [67108910])
 (jedi:key-goto-definition-pop-marker .
				      [67108908])
 (jedi:key-related-names . "�r")
 (jedi:key-show-doc . "�d")
 (jedi:server-args)
 (jedi:server-command "c:/Users/xxxxx/.emacs.d/.python-environments/default/Scripts/jediepcserver.exe")
 (jedi:setup-keys . t)
 (jedi:tooltip-method pos-tip popup)
 (jedi:use-shortcuts)
 (python-environment-default-root-name . "default")
 (python-environment-directory . "~/.emacs.d/.python-environments")

I'm sorry if I forgot some important information. If needed I'll update as fast as possible.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions