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

direnv-edit doesn't work. #20

Closed
ghost opened this issue Oct 31, 2017 · 4 comments
Closed

direnv-edit doesn't work. #20

ghost opened this issue Oct 31, 2017 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 31, 2017

direnv-mode works ok.
I can enabled and disabled it by direnv-mode with no errors.
but when i try to add more environment variable with command direnv-edit, Emacs gives error:
error in process filter: comint-output-filter: Symbol's function definition is void: dirtrack-filter-out-pwd-prompt
error in process filter: Symbol's function definition is void: dirtrack-filter-out-pwd-prompt
direnv edit: exited abnormally with code 1.

And C-h f dirtrack-filter-out-pwd-prompt gives me nothing .
and I searched around for dirtrack-filter-out-pwd-prompt, and found a wiki which shows me how to custom define this function.
this is obviously neither what i want nor what I needed.
any suggestion i could solve this problem ?

@wbolster
Copy link
Owner

not sure about the dirtrack stuff (that's not direnv), but in general direnv-edit has a few problems, so you'd be better off just editing .envrc, and running direnv allow (from a shell) afterwards.

@ghost
Copy link
Author

ghost commented Oct 31, 2017

Thanks for the quickly reply. guess I'm gonna give it up.
in fact , wht I need is just one environment variable PYTHONPATH.
and wht I do now to get it done is using .dir-locals.el file , and put content
((python-mode
(eval setenv "PYTHONPATH" "/path/to/project")))
in it.

finally set variable enable-local-eval to t --- which was told too danger.

I'm gonna waiting for you to make direnv-edit work as it suppose to be and quit that danger way , :).

@wbolster
Copy link
Owner

just put it in .envrc and run direnv allow from a shell. emacs-direnv will pick it up!

@wbolster wbolster added the bug label Dec 29, 2018
@wbolster
Copy link
Owner

wbolster commented May 11, 2019

i've completely removed the broken direnv-edit command in fc36cb9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant