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

"Wrong type argument" error while setting "pyvenv-activate" variable with "elpy-set-project-variable" #108

Open
SergiyKolesnikov opened this issue Apr 4, 2021 · 0 comments

Comments

@SergiyKolesnikov
Copy link

SergiyKolesnikov commented Apr 4, 2021

I am trying to set pyvenv-activate as a project variable using elpy-set-project-variable function:
M-x elpy-set-project-variable RET pyvenv-activate RET

And a this point I get the following error: widget-file-prompt-value: Wrong type argument: stringp, nil

If there is a .dir-locals.el file with a value for pyvenv-activate already, e.g.:

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((nil . ((pyvenv-activate . ""))))

then setting the value using elpy-set-project-variable works fine.

pyvenv 20201227.1623

Elpy Configuration
Emacs.............: 27.1
Elpy..............: 1.35.0
Virtualenv........: None
Interactive Python: ipython3 7.20.0 (/usr/bin/ipython3)
RPC virtualenv....: rpc-venv (/home/user/.emacs.d/elpy/rpc-venv)
Python...........: python3 3.9.2 (/home/user/.emacs.d/elpy/rpc-venv/bin/python3)
Jedi.............: 0.17.2 (0.18.0 available)
Rope.............: 0.18.0
Autopep8.........: 1.5.4 (1.5.6 available)
Yapf.............: 0.30.0 (0.31.0 available)
Black............: 20.8b1
Syntax checker....: flake8 (/home/user/.emacs.d/elpy/rpc-venv/bin/flake8)

@SergiyKolesnikov SergiyKolesnikov changed the title "Wrong type argument" error while trying to set "pyvenv-activate" variable with "elpy-set-project-variable" "Wrong type argument" error while setting "pyvenv-activate" variable with "elpy-set-project-variable" Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant