Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when opening buffer in directory with restricted access #45

Open
seblj opened this issue Jun 10, 2021 · 4 comments
Open

Error when opening buffer in directory with restricted access #45

seblj opened this issue Jun 10, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@seblj
Copy link

seblj commented Jun 10, 2021

Describe the bug
Prints out error message Error: vim-ultest encountered an unknown error on startup, check v:exception

Logs couldn't be created as I was in the /usr/local/share/nvim/runtime/syntax and there isn't permission to create a file in that directory. I also tried to name the file ~/vim-ultest.log to create it in the home directory, but that didn't work as well

To Reproduce
Go to /usr/local/share/nvim/runtime/syntax and open a buffer in neovim. It should prompt you with the error Error: vim-ultest encountered an unknown error on startup, check v:exception. It seems like I only get this message when opening a buffer in a directory with restricted access.

It also doesn't print the error message when running with sudo.

Expected behavior
Don't print any error message

Screenshots

Screen.Recording.2021-06-10.at.10.51.22.mov

Additional context
At first it printed out Error: vim-ultest remote function not detected, try running :UpdateRemotePlugins on install/update, but this seems to be fixed by 2032c74. However, I tried to do :UpdateRemotePlugins again after that commit, and then it came back. I tried to do it even more times, and then it suddenly disappeared again showing the error I am receiving now.

@rcarriga
Copy link
Owner

I can't seem to be able to reproduce at all. Not sure what other info would be relevant. If you :checkhealth do you see any issues with the python provider?

@seblj
Copy link
Author

seblj commented Jun 10, 2021

It might be because I am on macOS. Don't know why this would fail only on macOS though. The python3 provider seems to be okay with healthcheck showing that the latest pynvim installed

I also tried to copy my config over on a virtual machine with ubuntu 20.04, and there it was no problem.

@rcarriga
Copy link
Owner

Sorry just to clarify, are you saying you can recreate the problem on ubuntu or not?

@seblj
Copy link
Author

seblj commented Jun 12, 2021

Yeah I only get this on my mac which is super weird. Exactly the same config, and I try to open a buffer in /usr/local/share/nvim/runtime/syntax on both OS's

@rcarriga rcarriga added the bug Something isn't working label Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants