#982602 vim-ultisnips: Running vim as root detects erros in automatically loaded UltiSnips addon

Package:
vim-ultisnips
Source:
vim-ultisnips
Submitter:
Andriy Ushakov
Date:
2025-11-14 14:03:02 UTC
Severity:
normal
Tags:
#982602#5
Date:
2021-02-12 11:03:15 UTC
From:
To:
Dear Maintainer,

starting vim as root without .vimrc and .vim/ results in following errors:

Error detected while processing TextChangedI Autocommands for "*"..script
/var/lib/vim/addons/autoload/UltiSnips.vim:
line   15:
Traceback (most recent call last):

Error detected while processing TextChangedI Autocommands for "*"..script
/var/lib/vim/addons/autoload/UltiSnips.vim:
line   15:
  File "<string>", line 1, in <module>

Error detected while processing TextChangedI Autocommands for "*"..script
/var/lib/vim/addons/autoload/UltiSnips.vim:
line   15:
ImportError: cannot import name 'UltiSnips_Manager' from 'UltiSnips' (unknown
location)

Error detected while processing TextChangedI Autocommands for "*"..function
UltiSnips#TrackChange:
line    1:
Traceback (most recent call last):

Error detected while processing TextChangedI Autocommands for "*"..function
UltiSnips#TrackChange:
line    1:
  File "<string>", line 1, in <module>

Error detected while processing TextChangedI Autocommands for "*"..function
UltiSnips#TrackChange:
line    1:
NameError: name 'UltiSnips_Manager' is not defined


/var/lib/vim/addons/autoload/UltiSnips.vim
line 15:
exec g:_uspy "from UltiSnips import UltiSnips_Manager"


If .vimrc and .vim/ are copied from the user home directory to /root/, then vim
and UltiSnips are working without issues.

#982602#10
Date:
2025-11-14 13:53:32 UTC
From:
To:
Hello!

I cannot reproduce the errors in a clean container with empty /root folder. Is
the bug still relevant in 3.2-2 version of the package?