Duplicate messages in the *envrc* buffer
Opened this issue · 1 comments
When visiting a file in a directory with a .envrc
file I see the following duplicate messages in the *envrc*
buffer.
==== 2022-08-26 07:14:27 ==== /home/doolio/projects/learning/python/ ====
direnv: loading ~/projects/learning/python/.envrc
direnv: export +VIRTUAL_ENV ~PATH==== 2022-08-26 07:14:27 ==== /home/doolio/projects/learning/python/ ====
direnv: loading ~/projects/learning/python/.envrc
direnv: export +VIRTUAL_ENV ~PATH
It doesn't appear to cause any issues but is this expected behaviour or a misconfiguration on my part. The relevant use-package
form from my init.el
is as follows. I can provide the full macro expansion of this form if necessary.
(use-package envrc ; Buffer-local direnv integration.
:if (executable-find "direnv")
:demand t
:config (envrc-global-mode))
The contents of my .envrc
are as follows:
layout python python3
Thanks for your time.
Can confirm this. Will investigate in due course, ideally writing a test for it. In the meantime, I don't think there should be a significant cost to this behaviour: direnv should usually execute very quickly a second time.