nvim-ide icon indicating copy to clipboard operation
nvim-ide copied to clipboard

Fail to expand file Explorer

Open sclatch1 opened this issue 2 years ago • 4 comments

[ Screenshot 2024-01-01 at 23 02 14 ]

sclatch1 avatar Jan 02 '24 01:01 sclatch1

I also get this error often when I expand the file manager and when I execute nvim with a filename. Not always but often.

nicolarevelant avatar Feb 01 '24 21:02 nicolarevelant

I was able to get this working by editing: lua/ide/components/explorer/filenode.lua add: local uv = require("luv") with the rest of the requires at the top of the file then remove "vim" from lines 107 and 111:

vim.uv.fs_opendir(self.path, function(err, dir)
			if err then
				return
			end
			vim.uv.fs_readdir(dir, function(err, entries)

to:

uv.fs_opendir(self.path, function(err, dir)
			if err then
				return
			end
			uv.fs_readdir(dir, function(err, entries)

I'm guessing it's some kind of version issue, I'm running 0.9.5

ljoldfield avatar Feb 17 '24 15:02 ljoldfield

I do not run into these issues.

nvim --version
NVIM v0.10.0-dev+2324-g4948fa42e
Build type: RelWithDebInfo
LuaJIT 2.1.1692716794
Run "nvim -V1 -v" for more info

Can you try to update to v0.10 and see if the issue is still present?

ldelossa avatar Feb 17 '24 17:02 ldelossa

Yep unmodified code working with v0.10.0

ljoldfield avatar Feb 18 '24 01:02 ljoldfield