Skip to content

Error "expected valid directory" #34

@pengux

Description

@pengux

I'm using lf.nvim and after the latest update and neovim version, it seems the behavior for vim.fn.termopen has changed which results in an error from toggleterm.nvim:

Error executing Lua callback: Vim:E475: Invalid argument: expected valid directory
stack traceback:
        [C]: in function 'termopen'
        ...packer/start/toggleterm.nvim/lua/toggleterm/terminal.lua:404: in function '__spawn'
        ...packer/start/toggleterm.nvim/lua/toggleterm/terminal.lua:477: in function 'spawn'
        ...packer/start/toggleterm.nvim/lua/toggleterm/terminal.lua:495: in function 'open'
        ...hare/nvim/site/pack/packer/start/lf.nvim/lua/lf/main.lua:128: in function 'start'
        ...cal/share/nvim/site/pack/packer/start/lf.nvim/lua/lf.lua:127: in function 'start'
        ...cal/share/nvim/site/pack/packer/start/lf.nvim/lua/lf.lua:37: in function <...cal/share/nvim/site/pack/packer/start/lf.nvim/lua/lf.lua:36>

This happens if I open neovim just by nvim and not specifying any directory path as argument. Could it be that lf.nvim is passing an empty string to toggleterm for the directory to open the terminal at?

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