question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Being spammed with errors when opening a file as sudo

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rcarrigacommented, Jun 10, 2021

@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?

0reactions
farzadmfcommented, Jun 11, 2021

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:

no notification handler registered for "/home/farzad/.vim/plugged/vimultest/rplugin/python3/ultest:function:_ultest_update_positions"

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found