Shougo / defx.nvim

:file_folder: The dark powered file explorer implementation for neovim/Vim8
MIT License
1.17k stars 86 forks source link

[defx] Invalid source_name:file on Defx #314

Closed pappasam closed 3 years ago

pappasam commented 3 years ago

Problems summary

On latest version, when typing :Defx, I receive [defx] Invalid source_name:file.

Expected

I'd expect the defx file explorer to open.

Environment Information

health#nvim#check

Configuration

Performance

Remote Plugins

terminal

tmux

health#provider#check

Clipboard (optional)

Python 2 provider (optional)

Python 3 provider (optional)

Python virtualenv

Ruby provider (optional)

Node.js provider (optional)

Perl provider (optional)

health#treesitter#check

Checking treesitter configuration

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

" Your minimal init.vim/vimrc

N/A. I cloned the repo into my Vim package directory and opened Neovim with nvim -u NORC

The reproduce ways from neovim/Vim starting (Required!)

  1. Open nvim with nvim -u NORC
  2. Type :Defx

Screen shot (if possible)

peek-invalid-sourcefile

pappasam commented 3 years ago

Never mind, this appears to be a broader issue with the latest Neovim nightly release.

Shougo commented 3 years ago

OK.

lukas-reineke commented 3 years ago

@pappasam is there an issue for this in Neovim? I have the same problem, but I can't find anything in the Neovim repo

pappasam commented 3 years ago

This is as close as I've found: https://github.com/neovim/neovim/pull/15632

Current workaround: packadd defx and its related plugins in your vimrc. This adds them to your runtime path before your vimrc finishes.

Shougo commented 3 years ago

Reproduced.

Shougo commented 3 years ago

https://github.com/neovim/neovim/issues/16031

Shougo commented 3 years ago

This is plugin's fault instead of Vim/neovim bugs.

Shougo commented 3 years ago

Fixed.