Skip to content

[BUG] Errors on every load #160

@KorigamiK

Description

@KorigamiK

Issues

  • I have checked existing issues and there are no issues with the same problem.

Plugin Version

  • I am using the latest version of the plugin

Neovim Version

  • I am using the 0.6 neovim version or later

Neovim Version

v0.10.1

Branch

master

Actual behavior

It produces duplicate text and errors the following:

image

input table: 0x7e1f54e2ad80 ...lazy/package-info.nvim/lua/package-info/virtual_text.lua:49: attempt to concatenate field 'version' (a nil value)                                               
stack traceback:                                                                                                                                                                               
^I...lazy/package-info.nvim/lua/package-info/virtual_text.lua:49: in function '__display_on_line'                                                                                              
^I...lazy/package-info.nvim/lua/package-info/virtual_text.lua:82: in function 'display'                                                                                                        
^I...lazy/package-info.nvim/lua/package-info/actions/show.lua:44: in function 'on_success'                                                                                                     
^I...im/lazy/package-info.nvim/lua/package-info/utils/job.lua:52: in function <...im/lazy/package-info.nvim/lua/package-info/utils/job.lua:41>                                                 
^I[C]: at 0x5941d8c58200                                                                                                                                                                       
^I[C]: in function 'pcall'                                                                                                                                                                     
^I/usr/share/nvim/runtime/lua/vim/ui.lua:101: in function 'input'                                                                                                                              
^I...ocal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/lib.lua:238: in function 'prompt'                                                                                                        
^I...y/nvim-tree.lua/lua/nvim-tree/actions/fs/remove-file.lua:133: in function <...y/nvim-tree.lua/lua/nvim-tree/actions/fs/remove-file.lua:107>                                               
[NvimTree] /home/origami/Dev/projects/team/mindsurf/apps/website/.wrangler was properly removed.                                                                                               
[NvimTree] /home/origami/Dev/projects/team/mindsurf/apps/website/migrations was properly removed.                                                                                              
...lazy/package-info.nvim/lua/package-info/virtual_text.lua:49: attempt to concatenate field 'version' (a nil value)                                                                           
stack traceback:                                                                                                                                                                               
^I...lazy/package-info.nvim/lua/package-info/virtual_text.lua:49: in function '__display_on_line'                                                                                              
^I...lazy/package-info.nvim/lua/package-info/virtual_text.lua:82: in function 'display'                                                                                                        
^I...lazy/package-info.nvim/lua/package-info/actions/show.lua:44: in function 'on_success'                                                                                                     
^I...im/lazy/package-info.nvim/lua/package-info/utils/job.lua:52: in function <...im/lazy/package-info.nvim/lua/package-info/utils/job.lua:41> function: builtin#18 ...lazy/package-info.nvim/l
ua/package-info/virtual_text.lua:49: attempt to concatenate field 'version' (a nil value)                                                                                                      
stack traceback:                                                                                                                                                                               
^I...lazy/package-info.nvim/lua/package-info/virtual_text.lua:49: in function '__display_on_line'       

Expected behavior

No errors

Steps to reproduce

Open package.json then move to another buffer, reopen package.json

Package info config

I am using lazy.nvim with the following config:

  {
    "vuki656/package-info.nvim",
    event = "BufRead package.json",
    dependencies = { "MunifTanjim/nui.nvim" },
    config = true,
  },

Other information

No response

Help

Yes, but I don't know how to start. I would need guidance (check question below)

Implementation help

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugSomething isn't working🤝 Contributions WelcomeNot on the roadmap but can be picked up by someone

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions