forked from sebastiw/edts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load code and start services only once per node
Edts initializes the node (or a new node) every time a new erlang file is opened. Initializing a new node involves loading edts onto the node, but if the user twice quickly file while a long-lived background process is running, it will get killed by the code loading mechanism. An example when this can happen is when the xref plugin initializes for a large project. The strategy to always initialize the node was discussed in sebastiw#237 and one motivation to do node_init always was "to update code path, xref etc if you open a file in a newly created directory (eg. app)", see the comment sebastiw#237 (comment) This commit attempts to not break code path updates, while avoid errors caused by the code loading.
- Loading branch information
1 parent
937ad2e
commit a403613
Showing
1 changed file
with
41 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters