Open chama-chomo opened 4 years ago
Set python-pipenv-activate to t.
nope, it doesn't help
(python :variables
python-backend 'lsp
python-lsp-server 'pyls
;; python-lsp-server 'mspyls
;; python-backend 'anaconda
python-fill-column 99
python-enable-yapf-format-on-save nil
python-sort-imports-on-save nil
python-pipenv-activate t
Take a look at your .spacemacs.env file, any references to virtualenvs should be removed and make sure the path looks sane. That has usually been the reason for any strange behavior in the python layer for me.
Unfortunately, I haven't found any references, I'm using pipenv all the time and 3-4 weeks ago it was normally working, I guess something has changed upstream
It may be that your module is too deeply nested, which seems to be a problem with pipenv. Try the code in this gist: https://gist.github.com/mpcogito/d6f2a2fb5595bf10e6109143071eee5b
Is there any way this can be fixed while still using python-pipenv-activate
? I'm not sure how to modify the code in the gist to do that.
@k-jell do that in shell
@lebensterben Could you explain a bit further what I should do in shell? Setting the default-directory? Sorry if I'm missing something obvious here.
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!
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!
Description :octocat:
When I open a file with dired, using ranger layer or run
emacs 'file'
directly from the terminal pipenv can be activated normallyReproduction guide :beetle:
SPC p p
and choose project/fileSPC m v a
Observed behaviour: :eyes: :broken_heart:
Expected behaviour: :heart: :smile: pipenv activates virtual env.
System Info :computer:
Backtrace :paw_prints: