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

file not found when executing ctags-query on Linux #2

Open
hpfast opened this issue Jan 23, 2023 · 1 comment
Open

file not found when executing ctags-query on Linux #2

hpfast opened this issue Jan 23, 2023 · 1 comment

Comments

@hpfast
Copy link

hpfast commented Jan 23, 2023

Hi,
great tool, just what I need for my vimwiki workflow!
I know this hasn't been updated in a while, but in case you're interested or in case some other random user stumbles across this problem:

after installing following the instructions, executing :FzfTagQuery gives me the result file not found: /home/hans/.vim/plugged/vim-tagquery/bin/ctags-query. The file preview window shows zsh: file not found.

I'm on Linux/Ubuntu using zsh.

The error is a bit confusing, but I find indications on the web that when zsh says it can't find a binary that's there, it can have something to do with Nix.

Workaround

When I download the source for [ctags-query](https://github.com/matt-snider/ctags-query] and build the binary, using that binary (target/x86_64-unknown-linux-gnu/releases/ctags-query) produces a working :FzfTagQuery command in Vim.

Maybe something has changed in your build process to produce a non-portable binary? In any case, for those with Rust installed the workaround is fairly simple.

@matt-snider
Copy link
Owner

Hey Hans!

Thank you for the detailed report including a workaround. I'm glad to see someone has found some use for this! I have not really used vim-tagquery for a while but I'd be happy to see if I can help.

So you are saying that the file was in fact located at /home/hans/.vim/plugged/vim-tagquery/bin/ctags-query after installing the plugin?

You mentioned Nix - I'm also a Nix user but I did not install this plugin using Nix. Did you install it with Nix or Plug or some other method?

Lastly: you mentioned building from source and that was a viable workaround - this makes me think you built the binary and then moved it into the correct location (/home/hans/.vim/plugged/vim-tagquery/bin/ctags-query), which leads me to believe that the answer to my first question is 'no' (the file was not in place after running the installation). Can you provide more details on this aspect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants