Being spammed with errors when opening a file as sudo
See original GitHub issueDescribe the bug
I’m on Archlinux and opening sudo nvim /etc/pacman.conf
(which is owned by root
), and ultest
is spamming me with errors. For every motion that I do, I’m getting an error:
Error detected while processing function ultest#handler#get_nearest_test[1]..<SNR>503_Call[3].._ultest_get_nearest_test[1]..remote#define#request:
line 2:
Error invoking '/home/farzad/.vim/plugged/vim-ultest/rplugin/python3/ultest:function:_ultest_get_nearest_test' on channel 10 (python3-rplugin-host):^@no request handler registered for "/home/farzad/.vim/plugged/vim-ultest/rplugin/python3/ultest:function:_ultest_get_nearest_test"
I didn’t create a log, but let me know if that would help and I can try to create one.
To Reproduce
Open a file with sudo
and see the errors
Expected behavior Errors should be handled gracefully and not interfere with file navigation
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
How to modify an invalid '/etc/sudoers' file? - Ask Ubuntu
To do this via SSH, log in to the machine and run the command pkexec visudo . If you have physical access to...
Read more >Resolve syntax errors that occur after editing the sudoers file ...
This syntax error occurs when the /etc/sudoers file is manually edited to change the sudo user and unwanted characters are added to the...
Read more >How to fix 'sudo: no tty present and no askpass program ...
First open a shell console and type: sudo visudo. Then edit that file to add to the very end: username ALL = NOPASSWD:...
Read more >Why does sudo command take long to execute? - Server Fault
I have this error sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an...
Read more >sudo - Debian Wiki
This message means what it says: the user you're running as isn't allowed to execute the given command on the given machine. One...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@farzadmf I managed to reproduce and find the issue. The problem was a file permissions error with the default log file when switching between root and your user.
@seblj That seems to be a different issue because it’s triggering the old catch, can you check with the latest commit and if it’s not fixed open a separate issue with more details?
Hey @rcarriga
Now I’m facing the same issue as @frbaroni mentioned: I’ve installed the vim-dirdiff plugin, and I’m opening two directories using
nvim +"DirDiff <...dir1...> <...dir2...>"
, and I see the following error right off the bat:Didn’t include the logs because I thought the error itself might include a clue to a missing
except
somewhere, but let me know if you need more information and I’ll try to gather more info