NotAShelf / nvf

A highly modular, extensible and distro-agnostic Neovim configuration framework for Nix/NixOS.
https://notashelf.github.io/nvf/
MIT License
155 stars 24 forks source link

nvim-code-action-menu deprecated (and broken) #342

Open horriblename opened 1 month ago

horriblename commented 1 month ago

⚠️ Please verify that this bug has NOT been reported before.

Description

https://github.com/weilbith/nvim-code-action-menu has been archived, and I suspect it's responsible for this error:

Error detected while processing CursorMoved Autocommands for "<buffer=156>":
E5108: Error executing lua ...action-menu/lua/code_action_menu/windows/base_window.lua:112: attempt to index local 'option' (a number value)
stack traceback:
    ...action-menu/lua/code_action_menu/windows/base_window.lua:112: in function 'get_option'
    ...on-menu/lua/code_action_menu/windows/stacking_window.lua:28: in function 'get_stack_direction'
    ...on-menu/lua/code_action_menu/windows/stacking_window.lua:80: in function 'get_window_configuration'
    ...action-menu/lua/code_action_menu/windows/base_window.lua:77: in function 'open'
    ...per/start/nvim-code-action-menu/lua/code_action_menu.lua:79: in function 'update_details_window'
    ...per/start/nvim-code-action-menu/lua/code_action_menu.lua:105: in function 'update_selected_action'
    [string ":lua"]:1: in main chunk
E5107: Error loading lua [string ":lua"]:1: ')' expected near '\'
E5108: Error executing lua [string ":lua"]:1: module 'code-action' not found:
    no field package.preload['code-action']
cache_loader: module code-action not found
cache_loader_lib: module code-action not found
    no file '/nix/store/8zxd06514nxaq554gc7460bccr72nsc6-luajit-2.1.1713773202-env/share/lua/5.1/code-action.lua'
    no file '/nix/store/8zxd06514nxaq554gc7460bccr72nsc6-luajit-2.1.1713773202-env/share/lua/5.1/code-action/init.lua'
    no file '/nix/store/8zxd06514nxaq554gc7460bccr72nsc6-luajit-2.1.1713773202-env/lib/lua/5.1/code-action.so'
stack traceback:
    [C]: in function 'require'
    [string ":lua"]:1: in main chunk

👟 Reproduction steps

enable nvim-code-actions-menu and use code action

👀 Expected behavior

not spam me with errors

😓 Actual Behavior

spam me with errors

💻 Metadata

📝 Relevant log output

-
NotAShelf commented 1 month ago

Reminds me to replace it...