vim-addons crashes if HOME is not set in the env
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vim-addon-manager (Debian) |
Fix Released
|
Unknown
|
|||
vim-addon-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If I execute vim-addons from a subshell that doesn't have environment variables such as HOME established, vim-addons crashes with the following error:
/usr/bin/
from /usr/bin/
from /usr/bin/
The referenced line 190 is setting the default for the per-user directory.
This is a problem if, say, you're trying to use puppet to manage a vim addon and puppet is trying to execute `vim-addons -w install whatever` in a subshell.
Really, if you're trying to manage system-wide vim addons, the existence (or not) of a per-user directory shouldn't matter.
This was observed on Ubuntu precise with vim-addon-manager version 0.4.4.
Changed in vim-addon-manager (Debian): | |
status: | Unknown → New |
Changed in vim-addon-manager (Debian): | |
status: | New → Fix Committed |
Changed in vim-addon-manager (Debian): | |
status: | Fix Committed → Fix Released |
Thanks for taking your time to report this issue and help making Ubuntu better.
I was able to reproduce this issue, which still leads to a crash in vim-addon-manager 0.5.2 on Ubuntu Trusty. I also found that this bug has been reported upstream to Debian, so I have attached a bug watch.