Replies: 2 comments 3 replies
-
My workflow is as following:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
QiangF's method works well for me now.
Uncomment this line to help emacs find remote pylsp in
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I generally use anaconda to manage my python packages on my local and remote machines, including language servers. When I start a new emacs instance and open a python file I usually get an eglot error:
(error "None of ’pylsp, pyls, pyright-langserver’ are valid executables")
because I haven't yet activated my anaconda base env with conda.el. This is a small problem with a variety of fixes but I'm wondering what other people do or if I'm missing something obvious. It seems like there are several options:(conda-env-activate "base")
in my init file.Seems like asking for trouble when I inevitably run emacs on a machine without anaconda, also will slow down my init time.
conda-env-autoactivate-mode
.I was doing this but I kept getting error messages from conda.el when switching to buffers with python mode but no underlying file, or when editing remote python files.
/usr/local/bin
.Could be the most robust option, but I'm not familiar enough with conda internals to know if this is bad for some reason.
anaconda/bin
to my path.This feels like what should be happening, conda init is in my .zshrc but when I launch emacs from the OSX launcher it doesn't seem to activate.
Am I missing something? Do you do one of these options?
Beta Was this translation helpful? Give feedback.
All reactions