Coder Social home page Coder Social logo

Comments (9)

ldelossa avatar ldelossa commented on August 16, 2024 1

Yes @MattiaSilvestri this seems like a local system issue, and not a nvim-ide issue.

from nvim-ide.

ldelossa avatar ldelossa commented on August 16, 2024

This plugin doesnt play too well with lazy loading as of right now. Is it being lazy loaded?

from nvim-ide.

ldelossa avatar ldelossa commented on August 16, 2024

Going to close for now, if you still run into this issue feel free to re-open

from nvim-ide.

MattiaSilvestri avatar MattiaSilvestri commented on August 16, 2024

Hi, sorry for the late reply, I disabled lazy loading but I still get errors:

Error executing vim.schedule lua callback: ...ttia/.local/share/nvim/lazy/nvim-ide/lua/ide/lib/buf.lua:173: Expected lua string
stack traceback:
        [C]: in function 'nvim_buf_set_keymap'
        ...ttia/.local/share/nvim/lazy/nvim-ide/lua/ide/lib/buf.lua:173: in function 'set_keymap_normal'
        ...azy/nvim-ide/lua/ide/components/bufferlist/component.lua:94: in function 'setup_buffer'
        ...azy/nvim-ide/lua/ide/components/bufferlist/component.lua:127: in function 'open'
        ....local/share/nvim/lazy/nvim-ide/lua/ide/panels/panel.lua:127: in function '_attach_component'
        ....local/share/nvim/lazy/nvim-ide/lua/ide/panels/panel.lua:277: in function 'open'
        ...hare/nvim/lazy/nvim-ide/lua/ide/workspaces/workspace.lua:147: in function 'init'
        ...azy/nvim-ide/lua/ide/workspaces/workspace_controller.lua:167: in function 'assign_ws'
        ...azy/nvim-ide/lua/ide/workspaces/workspace_controller.lua:271: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

from nvim-ide.

ldelossa avatar ldelossa commented on August 16, 2024

@MattiaSilvestri

Can you show me your config? Or are you just calling an empty setup function?

-- Opinionated way of setting per-buffer keymaps, this is the typical
-- usage for nvim-ide components.
function Buf.set_keymap_normal(buf, keymap, cb)
	vim.api.nvim_buf_set_keymap(buf, "n", keymap, "", { silent = true, callback = cb })
end

This is the line that's failing for you, but I don't experience any issues on load.

Also what vim version are you on?

from nvim-ide.

ldelossa avatar ldelossa commented on August 16, 2024

Pushed fix for this :)

from nvim-ide.

ldelossa avatar ldelossa commented on August 16, 2024

Please re-open if issue persists.

from nvim-ide.

MattiaSilvestri avatar MattiaSilvestri commented on August 16, 2024

Hi, sorry for the delayed replies but I've been quite busy lately...unfortunately I still get some errors, like this when I open a workspace from AstroNvim startpage:

Error detected while processing BufEnter Autocommands for "*":
Error executing lua callback: ...local/share/nvim/lazy/nvim-ide/lua/ide/logger/logger.lua:59: Invalid buffer id: 2
stack traceback:
        [C]: in function 'nvim_buf_set_lines'
        ...local/share/nvim/lazy/nvim-ide/lua/ide/logger/logger.lua:59: in function '_log'
        ...local/share/nvim/lazy/nvim-ide/lua/ide/logger/logger.lua:82: in function 'debug'
        ...al/share/nvim/lazy/nvim-ide/lua/ide/panels/component.lua:138: in function 'is_displayed'
        .../lazy/nvim-ide/lua/ide/components/explorer/component.lua:641: in function <.../lazy/nvim-ide/lua/ide/components/explorer/component.lua:639>
        [C]: in function 'nvim_buf_delete'
        ...azy/neovim-session-manager/lua/session_manager/utils.lua:78: in function <...azy/neovim-session-manager/lua/session_manager/utils.lua:70>

and this when I attempt to open the explorer side pane:

Error executing Lua callback: .../lazy/nvim-ide/lua/ide/components/explorer/component.lua:204: attempt to concatenate field 'name' (a nil value)
stack traceback:
        .../lazy/nvim-ide/lua/ide/components/explorer/component.lua:204: in function 'post_win_create'
        ....local/share/nvim/lazy/nvim-ide/lua/ide/panels/panel.lua:186: in function '_attach_component'
        ....local/share/nvim/lazy/nvim-ide/lua/ide/panels/panel.lua:277: in function 'open'
        ...al/share/nvim/lazy/nvim-ide/lua/ide/panels/component.lua:190: in function 'focus'
        .../lazy/nvim-ide/lua/ide/components/explorer/component.lua:194: in function 'callback'
        ...azy/nvim-ide/lua/ide/workspaces/workspace_controller.lua:143: in function 'recursive_argument_selection'
        ...azy/nvim-ide/lua/ide/workspaces/workspace_controller.lua:147: in function 'recursive_argument_selection'
        ...azy/nvim-ide/lua/ide/workspaces/workspace_controller.lua:156: in function <...azy/nvim-ide/lua/ide/workspaces/workspace_controller.lua:99>

My neovim version is 0.9.2 and I copied the config from your personal dotfiles (not the example in this repo), just to be sure I'm not doing anything wrong. At this point I have the suspect it might be an incompatibility with AstroNvim?

from nvim-ide.

MattiaSilvestri avatar MattiaSilvestri commented on August 16, 2024

I just noticed that the plugin works flawlessly on another machine runnig Ubuntu 22.04, where I have a clone of my neovim config. Maybe the issue can be related to my OS (Manjaro)?

from nvim-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.