Skip to content

fd vs fdfind, plugin breaks on ubuntu and debian systems #20

@Ren-B-7

Description

@Ren-B-7
          To further complicate things, fd doesnt work on ubuntu, since the fd name was already taken, they named it fd-find, which somewhere gets shortened to fdfind, meaning that the plugin wont ever find the working dir when using an ubuntu system...   

This explains why even though there is provision for single file mode, the plugin wont work when you are not in a .csx folder.

Sadly a simple
alias fd="fdfind"

Doesnt work for me. Since i use Zsh i also cant export the fd as a function to a subshell.

Maybe a bit of a hack would be to change the file search to
iabdelkareem/csharp.nvim/tree/main/lua/csharp/modules/lsp/omnisharp.lua -- line 13

local root_dir = vim.fn.systemlist((vim.fn.executable("fdfind") == 1 and "fdfind" or "fd") .. " -e sln . " .. vim.loop.cwd())[1]

Originally posted by @Ren-B-7 in #19 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions