wbyoung / avn

Automatic Version Switching for Node
MIT License
1.14k stars 54 forks source link

avn fork bombs system when changing directories #98

Open pinko-fowle opened 4 years ago

pinko-fowle commented 4 years ago

Trying to change to a directory or run __avn_debug causes an infinite loop of processes to keep getting spawned. I am using zsh. chpwd_functions=( __avn_Chpwd ). I can think of nothing I can do to make this any simpler. I have tried various .nvmrc configurations. I have tried repeating the install setups while nvm use'ing different nvms. I continue to get never ending fork bombs. I have not found any way to begin to get debugging information about what is causing this.

Details

The output of __avn_debug in the directory with a .node-version file is:

this fork bombs (endlessly spawns new proceses) my system with no output to the screen.

avn is loaded in my ~/.zshenv file with:

[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh"

nvm specific

wbyoung commented 4 years ago

Probably start debugging by editing $HOME/.avn/bin/avn.sh and commenting out parts of the script until it doesn't fork bomb any more. Could be specific to your config, but also could be a bug in the library. Let me know what you find.