Comments (4)
Direnv itself already shows a message, when an environment takes longer then 5 seconds too load.
from emacs-direnv.
i understand how this can be annoying.
currently direnv.el
uses call-process
(a synchronous api) to execute direnv export json
:
(call-process "direnv" nil '(t t) nil "export" "json")
making that asynchronous using e.g. make-process
would make things considerably more complex. not just the code, also all the state handling, e.g. what happens if direnv-mode
is enabled, you switch to a buffer, direnv
takes its time (in the background), you switch to another buffer from another directory in the mean time, direnv
is triggered again, this time fast, the results get loaded, now the first direnv
finally finished, even though you're not looking at that buffer anymore, oops, and so on, and so on.
i'd like to keep this library simple (and low maintenance) and changing this is not worth the complexity imho, though i do understand the inconvenience.
from emacs-direnv.
closing this as ‘wontfix’ since it's too complex
from emacs-direnv.
I started working on this issue, but I don't know how I can prevents direnv to be called multiple times in parallel for the same directory: Mic92@f4f3dbb
Also see this thread on NixOS discourse: https://discourse.nixos.org/t/emacs-direnv-help-needed-to-make-it-non-blocking/8595
from emacs-direnv.
Related Issues (20)
- release 1.5.0 HOT 2
- Caching strategies HOT 4
- direnv-mode tries to parse direnv errors HOT 5
- can make emacs hangs on kill-emacs
- add support for TRAMP HOT 5
- magit status doesn't trigger a direnv update HOT 2
- Not updating after upgrade HOT 1
- Code actually requires Emacs 26.1 HOT 1
- emacs-pytest does not use env variables set by direnv-mode HOT 1
- *Warnings* buffer pops up when .envrc is blocked HOT 3
- Python virtualenvwrapper HOT 6
- emacs not recognizing jupyter? HOT 2
- use closest dir with .envrc instead of direct parent for caching HOT 4
- direnv environment carrying over between buffers HOT 2
- emacs-direnv breaks vterm prompt HOT 4
- direnv-emacs doesn't load soon enough and it breaks flycheck-haskell HOT 1
- Lots of these message "Invalid face reference: (diff-changed|dif-removed|diff-added) HOT 3
- Add to (Non)GNU ELPA? HOT 11
- error handling for blocked directories is annoying
- Feature: Disable updating environment for certain files/modes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-direnv.