syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.67k stars 4.89k forks source link

Anaconda mode stops working for autocomplete after a while #14269

Closed synic closed 2 years ago

synic commented 3 years ago

Description :octocat:

anaconda-mode server stops responding, so python autocomplete stops working, anaconda buffer stops receiving output. Killing the anaconda process and toggling autocomplete makes it work again.

I don't see any particular errors in the buffer that would indicate a crash, though there is a lot of this:

<ipython-input-1-23f9ccda9a46>:98: DeprecationWarning: Providing the line is now done in the functions themselves like `Script(...).complete(line, column)`
  result = f(jedi.Script(source, line, column, path, environment=virtual_environment))
<ipython-input-1-23f9ccda9a46>:98: DeprecationWarning: Providing the column is now done in the functions themselves like `Script(...).complete(line, column)`
  result = f(jedi.Script(source, line, column, path, environment=virtual_environment))
<ipython-input-1-23f9ccda9a46>:154: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_signatures instead.
  signatures = script.call_signatures()
<ipython-input-1-23f9ccda9a46>:130: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).complete instead.
  for definition in script.completions()]

Reproduction guide :beetle:

System Info :computer:

smile13241324 commented 3 years ago

When this happens and you manually kill the log buffer does emacs regenerate? If it does your log buffer is overflowing. The root of the issue may then be a conflict between latest version of jedi and ipython or anaconda-mode. The warning above just says that the way jedi is invoced is deprecated.

I have similar issues with LSP and python in my work environment however I have always though this would be an issue of my work box (its pretty slow), so this could still be an issue with us. Not sure if we can limit the size of a buffer in emacs 🤔.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!