Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable automatic anaconda response #3772

Closed
lufeihaidao opened this issue Nov 12, 2015 · 18 comments
Closed

disable automatic anaconda response #3772

lufeihaidao opened this issue Nov 12, 2015 · 18 comments
Labels
- Forum - Python stale marked as a stale issue/pr (usually by a bot)

Comments

@lufeihaidao
Copy link

I'm learning bottle, but when I try to edit file, it automatically send anaconda request and automatically jump to anaconda response. It is really annoying.How can I disable it?

image

image

Why from different nginx...

@cpaulik
Copy link
Contributor

cpaulik commented Nov 12, 2015

What does the anaconda response say? Normally if anaconda fails it will only show a message in the minibuffer but not popup a window.

@lufeihaidao
Copy link
Author

@cpaulik Something is strange here... When I came back from the cafe this problem disappeared... And the new problem is:

image

Peerhaps it's the network problem...

@cpaulik
Copy link
Contributor

cpaulik commented Nov 12, 2015

Do you by any chance work behind a proxy? The eldoc error will spam your minibuffer but should not in any way interfere with the autocompletion.

@lufeihaidao
Copy link
Author

@cpaulik Yeah, but it took no effect when I disabled my proxy. I found an issue pythonic-emacs/anaconda-mode#124.

My environment:
Mac, pyenv, brew installed python 2.7.10
image

error in process filter: Can't read anaconda-mode server response [2 times]
Skip anaconda-mode eldoc response

When I tried to use TAB, I was told Completion needs an inferior Python process running, then I inputed M-X run-python, ipython was opened(python 2.7.10). In this window, it seems everything works fine.

But when I returned to edit py file, emacs still popup anaconda response windows(screenshot in the first comment) once I typed anything.

@cpaulik
Copy link
Contributor

cpaulik commented Nov 13, 2015

I've had problems in the past with my proxy, and had to set the no_proxy environment variable in emacs for 127.0.0.1 see here for reference.

Another thing that might be the problem is the python version. There were subtle issues with the homebrew python version before.

Since you are using pyenv, can you try

pyenv install miniconda-3.16.0

and use this version in emacs?

@lufeihaidao
Copy link
Author

@cpaulik Now I've set the 'no_proxy', and installed miniconda-3.16.0, but it still not work...

@cpaulik
Copy link
Contributor

cpaulik commented Nov 17, 2015

@lufeihaidao Then I'm out of ideas unfortunately.

@synic
Copy link
Contributor

synic commented Nov 18, 2015

@lufeihaidao I had to install jedi and anaconda-mode with pip, outside of emacs. anaconda-mode tries to install it automatically, but does it incorrectly.

@phinicota
Copy link

I have the same issue, tried everything posted here with no success. Is there a way to disable when the python layer is loaded? The popup really turns python-mode unusable.

@cpaulik
Copy link
Contributor

cpaulik commented Mar 18, 2016

@phinicota Are your packages up to date? I thought that this problem was fixed upstream. If it does not work you can put anaconda-mode into your dotspacemacs-excluded-packages list.

@phinicota
Copy link

I'm running ubuntu 12.04 on the develop branch.
Python version is 2.7.3
I'm gonna try disabling it now.

System Info

  • OS: gnu/linux
  • Emacs: 24.5.2
  • Spacemacs: 0.105.14
  • Spacemacs branch: develop (rev. 4f07ff2)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(spacemacs-helm
 (auto-completion :variables auto-completion-complete-with-key-sequence-delay 0.04)
 emacs-lisp c-c++ semantic spotify git
 (shell :variables shell-default-height 30 shell-default-position 'bottom))

Edit: So now I've disabled anaconda-mode, I get "eldoc error: (error Eldoc needs an inferior Python process running)" on the mini buffer, but the pop-up thing is solved at least.

@phinicota
Copy link

phinicota commented Apr 25, 2016

So, I don't know how nor why, but I enabled anaconda-mode again and I don't get any kind of issue on the develop branch (same setup).

@autosquid
Copy link
Contributor

autosquid commented Jan 29, 2017

Same here, the error message appearing in a buffer is:

# status: (:error (error connection-failed failed with code 22
 :host 127.0.0.1 :service 62580))
# point: 1

@xarthurx
Copy link

Same issue as @autosquid

@sr105
Copy link

sr105 commented Feb 23, 2017

I get the same connection-failed message, but anaconda-mode works as soon as Emacs starts. It starts popping up the *anaconda-response* buffers after a period of time (undetermined).

@marcwebbie
Copy link

I fixed by disabling the anaconda response hooks

(remove-hook 'anaconda-mode-response-read-fail-hook
                 'anaconda-mode-show-unreadable-response)

@LZGH
Copy link

LZGH commented Jul 18, 2017

"(remove-hook 'anaconda-mode-response-read-fail-hook 'anaconda-mode-show-unreadable-response)" doesn't work for me. I sovle it by revise anaconda-mode.el source file,find "(add-hook 'anaconda-mode-response-read-fail-hook 'anaconda-mode-show-unreadable-response)" and remove it,then recompile anaconda-mode.el or delete anaconda-mode.elc directly,then it worked.

@github-actions
Copy link

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!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Forum - Python stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

10 participants