Open TwoClocks opened 2 years ago
I have to test this in an ubuntu vm. I dont use snap. I have to come back to you in the next couple of days
Both apps are in apt
, but a slightly older version, so I'm fine.
I've run into other problems w/ neovim and snap. Other plugins don't like node
installed via snap.
snap bins are weird simlinks. /usr/bin/rg/
links to /usr/bin/snap
. Everyting snap installs links to /usr/bin/snap
.
If you can reproduce it and it's a hard fix you could just add a warning to the docs.
at the very least some kind of warning should be shown. This is a very hard problem to troubleshoot.
I think this is due to snap's confinement capabilities.
I don't have a ubuntu machine myself but can someone with ubuntu and rg
installed via snap try this and share the output?
local utils = require("telescope.utils")
vim.print(utils.get_os_command_output({ "rg", "--files" }, vim.uv.cwd()))
I can probably improve telescope's checkhealth
command to catch accessibility issues due to snap packages maybe.
@jamestrew I was encountering the same issue when I installed rg
using snap. installing with apt fixes the issue. Thanks for your help with this :) Out of curiosity, how did you find out that this was due to snap's confinement capabilities? Is this confinement dynamic (which could be the reason why it worked under bash but not under nvim)?
I don't remember how I heard of it. It was just in passing or something. I haven't really looked into much since either.
Is this confinement dynamic (which could be the reason why it worked under bash but not under nvim)?
I believe so
Out of curiosity, how did you find out that this was due to snap's confinement capabilities?
I ran strace
and looked for errors. Snap installs in a char_root'd like environment, so it doesn't have access to files/directories unless specifically granted to it (or installed as "classic" or "developer"). So you get a lot of PERMISSION_DENIED
errors in the strace
I ran strace and looked for errors
Awesome! This'll be a good addition to my debugging arsenal. Thanks!
Description
If you install
fd
orrg
via snap (linux),find_files
andlive_grep
are blank. The pickers pop up, but nothing is in them regardless of what is typed.CheckHealth
shows green for both being installed and found.Neovim version
Operating system and version
Ubuntu 20.04.4 LTS
Telescope version / branch / rev
0.1.0
checkhealth telescope
Steps to reproduce
un-intall
rg
andfd
. re-install from snap.Expected behavior
live_grep
should workActual behavior
live_grep
does not work. The picker comes up, but is blank.Minimal config