ldelossa / nvim-ide

A full featured IDE layer for Neovim. Heavily inspired by VSCode.
MIT License
811 stars 28 forks source link

Fail to expand file Explorer #126

Open sclatch1 opened 6 months ago

sclatch1 commented 6 months ago

[

Screenshot 2024-01-01 at 23 02 14

]

nicolarevelant commented 5 months ago

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

ljoldfield commented 4 months ago

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

ldelossa commented 4 months ago

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?

ljoldfield commented 4 months ago

Yep unmodified code working with v0.10.0