jghauser / papis.nvim

Manage your bibliography from within your favourite editor
GNU General Public License v3.0
150 stars 8 forks source link

ERROR Failed to run healthcheck for "papis" plugin. #90

Closed Enrico68 closed 1 week ago

Enrico68 commented 1 month ago

Hello there , thanks for this addition for neovim. I am facing problem to run this plugin using on neovim , OSX 13.6.1 . This is the output of checkhealth papis

dressing: require("dressing.health").check()

dressing.nvim ~
- WARNING vim.ui.input not enabled
- OK vim.ui.select active: telescope

==============================================================================
lazy: require("lazy.health").check()

lazy.nvim ~
- OK Git installed
- OK no existing packages found by other package managers
- OK packer_compiled.lua not found

==============================================================================
nvim: require("nvim.health").check()

Configuration ~
- WARNING Missing user config file: /Users/enricopirani/.config/lvim/init.lua
  - ADVICE:
    - :help |config|

Runtime ~
- OK $VIMRUNTIME: /Users/enricopirani/Downloads/nvim-macos-x86_64/share/nvim/runtime

Performance ~
- OK Build type: Release

Remote Plugins ~
- OK Up to date

terminal ~
- key_backspace (kbs) terminfo entry: `key_backspace=^H`
- key_dc (kdch1) terminfo entry: `key_dc=\E[3~`
- $TERM_PROGRAM="WezTerm"
- $COLORTERM="truecolor"

External Tools ~
- OK ripgrep 14.1.0 (/usr/local/bin/rg)

==============================================================================
papis: require("papis.health").check()

- ERROR Failed to run healthcheck for "papis" plugin. Exception:
  ...e/pack/lazy/opt/papis.nvim/lua/papis/completion/init.lua:22: loop or previous error loading module 'papis.completion.source'

==============================================================================
provider.clipboard: require("provider.clipboard.health").check()

Clipboard (optional) ~
- OK Clipboard tool found: pbcopy

==============================================================================
provider.node: require("provider.node.health").check()

Node.js provider (optional) ~
- Node.js: v22.5.1

- Nvim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
- OK Latest "neovim" npm/yarn/pnpm package is installed: 5.1.0

==============================================================================
provider.perl: require("provider.perl.health").check()

Perl provider (optional) ~
- WARNING "Neovim::Ext" cpan module is not installed
  - ADVICE:
    - See :help |provider-perl| for more information.
    - You may disable this provider (and warning) by adding `let g:loaded_perl_provider = 0` to your init.vim
- WARNING No usable perl executable found

==============================================================================
provider.python: require("provider.python.health").check()

Python 3 provider (optional) ~
- pyenv: Path: /usr/local/Cellar/pyenv/2.4.5/libexec/pyenv
- pyenv: $PYENV_ROOT is not set. Infer from `pyenv root`.
- WARNING pyenv: Root does not exist: /Users/enricopirani/.pyenv
  . Ignoring pyenv for all following checks.
- `g:python3_host_prog` is not set. Searching for python3 in the environment.
- Executable: /Users/enricopirani/.virtualenvs/data_analisi/bin/python3
- Python version: 3.12.4
- pynvim version: 0.5.0
- OK Latest pynvim is installed.

Python virtualenv ~
- $VIRTUAL_ENV is set to: /Users/enricopirani/.virtualenvs/data_analisi
- Python version: 3.12.4
- OK $VIRTUAL_ENV provides :!python.

==============================================================================
provider.ruby: require("provider.ruby.health").check()

Ruby provider (optional) ~
- Ruby: ruby 3.3.4 (2024-07-09 revision be1089c8ec) [x86_64-darwin22]
- WARNING `neovim-ruby-host` not found.
  - ADVICE:
    - Run `gem install neovim` to ensure the neovim RubyGem is installed.
    - Run `gem environment` to ensure the gem bin directory is in $PATH.
    - If you are using rvm/rbenv/chruby, try "rehashing".
    - See :help |g:ruby_host_prog| for non-standard gem installations.
    - You may disable this provider (and warning) by adding `let g:loaded_ruby_provider = 0` to your init.vim

==============================================================================
rnvimr: health#rnvimr#check

OS ~
- WARNING health#report_start is deprecated, use vim.health.start instead. :help |deprecated|
  Feature will be removed in Nvim 0.11
- OK Name: Mac
- WARNING health#report_ok is deprecated, use vim.health.ok instead. :help |deprecated|
  Feature will be removed in Nvim 0.11

Ranger ~
- OK Version: ranger-master 

Python ~
- OK Version: 3.12.4 (main, Jun  6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.1.0.2.5)]

Pynvim ~
- OK Version: 0.5.0

Ueberzug (optional) ~
- Ueberzug is not support for Mac
- WARNING health#report_info is deprecated, use vim.health.info instead. :help |deprecated|
  Feature will be removed in Nvim 0.11

RPC ~
- OK RPC echo: Neovim send "Give me five!" and receive "Give me five!"

==============================================================================
vim.lsp: require("vim.lsp.health").check()

- LSP log level : WARN
- Log path: /Users/enricopirani/.local/state/lvim/lsp.log
- Log size: 506 KB

vim.lsp: Active Clients ~
- No active clients

vim.lsp: File watcher ~
- file watching "(workspace/didChangeWatchedFiles)" disabled on all clients

==============================================================================
vim.treesitter: require("vim.treesitter.health").check()

- Nvim runtime ABI version: 14
- OK Parser: comment              ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/comment.so
- OK Parser: json                 ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/json.so
- OK Parser: lua                  ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/lua.so
- OK Parser: markdown             ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/markdown.so
- OK Parser: markdown_inline      ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/markdown_inline.so
- OK Parser: python               ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/python.so
- OK Parser: regex                ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/regex.so
- OK Parser: vim                  ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/vim.so
- OK Parser: vimdoc               ABI: 14, path: /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/nvim-treesitter/parser/vimdoc.so
- OK Parser: bash                 ABI: 14, path: /usr/local/lib/nvim/parser/bash.so
- OK Parser: c                    ABI: 14, path: /usr/local/lib/nvim/parser/c.so
- OK Parser: lua                  ABI: 14, path: /usr/local/lib/nvim/parser/lua.so
- OK Parser: markdown             ABI: 14, path: /usr/local/lib/nvim/parser/markdown.so
- OK Parser: markdown_inline      ABI: 14, path: /usr/local/lib/nvim/parser/markdown_inline.so
- OK Parser: python               ABI: 14, path: /usr/local/lib/nvim/parser/python.so
- OK Parser: query                ABI: 14, path: /usr/local/lib/nvim/parser/query.so
- OK Parser: vim                  ABI: 14, path: /usr/local/lib/nvim/parser/vim.so
- OK Parser: vimdoc               ABI: 14, path: /usr/local/lib/nvim/parser/vimdoc.so

==============================================================================
which-key: require("which-key.health").check()

WhichKey: checking conflicting keymaps ~
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"yS"**
- rhs: `<Plug>YSurround`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"ys"**
- rhs: `<Plug>Ysurround`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"gc"**
- rhs: ` `
- WARNING conflicting keymap exists for mode **"n"**, lhs: **" rm"**
- rhs: ` `
- WARNING conflicting keymap exists for mode **"n"**, lhs: **" c"**
- rhs: `<Cmd>BufferKill<CR>`

==============================================================================
yazi: require("yazi.health").check()

yazi ~
- Running yazi.nvim version 3.1.0
- Found `yazi` version `Yazi 0.2.5 (Homebrew 2024-04-23)` πŸ‘
- yazi.nvim log file is at /Users/enricopirani/.local/state/lvim/yazi.log
-     hint: use `gf` to open the file path under the cursor
- OK yazi

Cannot start the plugin. Any help would appreciated Enrico

jghauser commented 1 month ago

Hey! Thanks for the issue report. Do you get any error messages and/or is the Papis command available? Do you have cmp installed (it's required for the completion module, which seems to be failing)?

Additionally, it might also help to enable logging (check out the debug module described in the README) and check if there's anything useful in the logs.

Enrico68 commented 1 month ago

Hi thanks , for your quick reply. This is a detailed output during installation pahse:

  Failed (1)
    ● papis.nvim 4.73ms ξ«“ start
        `lua` version `5.1` needed, but found `Lua 5.4.7  Copyright (C) 1994-2024 Lua.org, PUC-Rio`
        `lua5.1` or `lua` or `lua-5.1` version `5.1` not installed

        This plugin requires `luarocks`. Try one of the following:
         - fix your `luarocks` installation
         - enable `hererocks` with `opts.rocks.hererocks = true`
         - disable `luarocks` support completely with `opts.rocks.enabled = false`

        Will try building anyway, but will likely fail...

        --------------------------------------------------------------------------------

        Warning: Failed searching manifest: Failed downloading https://nvim-neorocks.github.io/rocks-binaries/dev/manifest-5.1 - failed downloading https://nvim-neorocks.github.io/rocks-binaries/dev/manifest-5.1
        Installing https://luarocks.org/papis.nvim-0.6.0-1.src.rock
        Missing dependencies for papis.nvim 0.6.0-1:
           sqlite (not installed)
           nui.nvim (not installed)
           pathlib.nvim (not installed)

        papis.nvim 0.6.0-1 depends on lua >= 5.1 (5.1-1 provided by VM: success)
        papis.nvim 0.6.0-1 depends on sqlite (not installed)
        Installing https://luarocks.org/sqlite-v1.2.2-0.src.rock
        Missing dependencies for sqlite v1.2.2-0:
           luv (not installed)

        sqlite v1.2.2-0 depends on luv (not installed)
        Installing https://luarocks.org/luv-1.48.0-2.src.rock

        Error: Failed installing dependency: https://luarocks.org/sqlite-v1.2.2-0.src.rock - Failed installing dependency: https://luarocks.org/luv-1.48.0-2.src.rock - Failed finding Lua header lua.h (searched at /usr/local/Cellar/lua@5.1/5.1.5_8//include/lua5.1). You may need to install Lua development headers. You can use `luarocks config variables.LUA_INCDIR <path>` to set the correct location.

        luv 1.48.0-2 depends on lua >= 5.1 (5.1-1 provided by VM: success)
        Failed installing papis.nvim with `luarocks`.

        --------------------------------------------------------------------------------

        Trying to build from source.
        Cloning into 'nui.nvim'...
        Missing dependencies for papis.nvim scm-1:
           nui.nvim (not installed)
           sqlite (not installed)
           pathlib.nvim (not installed)

        papis.nvim scm-1 depends on lua >= 5.1, < 5.4 (5.1-1 provided by VM: success)
        papis.nvim scm-1 depends on nui.nvim (not installed)
        Installing https://luarocks.org/dev/nui.nvim-dev-1.rockspec

        No existing manifest. Attempting to rebuild...
        nui.nvim dev-1 is now installed in /Users/enricopirani/.local/share/nvim/lazy-rocks/papis.nvim (license: MIT)

        papis.nvim scm-1 depends on sqlite (not installed)
        Installing https://luarocks.org/sqlite-v1.2.2-0.src.rock
        Missing dependencies for sqlite v1.2.2-0:
           luv (not installed)

        sqlite v1.2.2-0 depends on luv (not installed)
        Installing https://luarocks.org/luv-1.48.0-2.src.rock

        Error: Failed installing dependency: https://luarocks.org/sqlite-v1.2.2-0.src.rock - Failed installing dependency: https://luarocks.org/luv-1.48.0-2.src.rock - Failed finding Lua header lua.h (searched at /usr/local/Cellar/lua@5.1/5.1.5_8//include/lua5.1). You may need to install Lua development headers. You can use `luarocks config variables.LUA_INCDIR <path>` to set the correct location.

        luv 1.48.0-2 depends on lua >= 5.1 (5.1-1 provided by VM: success)

  Updates (1)
    ● nvim-treesitter 15.18ms ξͺ† VeryLazy

  Clean (4)
    β—‹ lua-utils.nvim 
    β—‹ neorg 
    β—‹ telescope-media-files.nvim 
    β—‹ vim-zettel 

  Loaded (33)
    ● bufferline.nvim 4.56ms ξͺ† VeryLazy
    ● dashboard-nvim 2.05ms ξ«“ start
    ● data-viewer.nvim 3.46ms ξ«“ start
    ● flash.nvim 1.89ms ξͺ† VeryLazy
    ● gemini.nvim 7.04ms ξ«“ start
    ● iron.nvim 6.14ms ξ«“ start
    ● lazy.nvim 40038.4ms ο„‘ init.lua
    ● LazyVim 2.4ms ξ«“ start
    ● leap 0.55ms ξ«“ start
    ● lualine.nvim 19.06ms ξͺ† VeryLazy
    ● mini.ai 2.08ms ξͺ† VeryLazy
    ● mini.pairs 7.07ms ξͺ† VeryLazy
    ● nabla.nvim 0.07ms ξ«“ start
    ● neoscroll.nvim 2.39ms ξͺ† WinScrolled
    ● noice.nvim 2.48ms ξͺ† VeryLazy
    ● nui.nvim 0.36ms ο’‡ papis.nvim
    ● nvim-nio 0.35ms ο’‡ papis.nvim
    ● nvim-notify 2.81ms σ°’± notify ο’‡ noice.nvim
    ● nvim-treesitter-textobjects 3.18ms ξͺ† VeryLazy
    ● pathlib.nvim 0.39ms ο’‡ papis.nvim
    ● plenary.nvim 0.3ms σ°’± plenary.popup ο’‡ gemini.nvim
    ● R.nvim 1.49ms ξ«“ start
    ● sqlite.lua 0.31ms ο’‡ data-viewer.nvim
    ● tokyonight.nvim 1.12ms colorscheme tokyonight
    ● translate-shell.vim 0.49ms ξ«“ start
    ● trouble.nvim 2.45ms σ°’± trouble ο’‡ lualine.nvim
    ● ts-comments.nvim 1.16ms ξͺ† VeryLazy
    ● vim-surround 1.16ms ξ«“ start
    ● vim-translator 0.8ms ξ«“ start
    ● VOoM 0.78ms ξ«“ start
    ● which-key.nvim 2.56ms σ°’± which-key ο’‡ mini.pairs
    ● yarepl.nvim 1.34ms ξ«“ start
    ● yazi.nvim 1.87ms ξͺ† VeryLazy

  Not Loaded (36)
    β—‹ auto-pandoc.nvim ο€– markdown 
    β—‹ catppuccin 
    β—‹ cmp-buffer ο’‡ nvim-cmp 
    β—‹ cmp-emoji ο’‡ nvim-cmp 
    β—‹ cmp-nvim-lsp ο’‡ nvim-cmp 
    β—‹ cmp-path ο’‡ nvim-cmp 
    β—‹ conform.nvim ξ―‡ ConformInfo ο„œ <leader>cF ο„œ <leader>cF (v) 
    β—‹ decisive.nvim ο€– csv ο„œ ]c ο„œ [c ο„œ <leader>cca ο„œ <leader>ccA 
    β—‹ dressing.nvim 
    β—‹ friendly-snippets ο’‡ nvim-snippets 
    β—‹ gitsigns.nvim ξͺ† LazyFile 
    β—‹ glow.nvim ο€– markdown 
    β—‹ grug-far.nvim ξ―‡ GrugFar ο„œ <leader>sr (v) ο„œ <leader>sr 
    β—‹ headlines.nvim ο€– rmd ο€– norg ο€– markdown ο€– org 
    β—‹ indent-blankline.nvim ξͺ† LazyFile 
    β—‹ lazydev.nvim ξ―‡ LazyDev ο€– lua 
    β—‹ lsp-colors.nvim ξͺ† BufRead 
    β—‹ luvit-meta 
    β—‹ mason-lspconfig.nvim ο’‡ nvim-lspconfig 
    β—‹ mason.nvim ξ―‡ Mason ο„œ <leader>cm ο’‡ nvim-lspconfig ο’‡ conform.nvim 
    β—‹ mini.icons 
    β—‹ neo-tree.nvim ξ―‡ Neotree ο„œ <leader>fe ο„œ <leader>fE ο„œ <leader>e ο„œ <leader>E ο„œ <leader>ge ο„œ <leader>be 
    β—‹ nvim-cmp ξͺ† InsertEnter ο„œ <Tab> (s) ο„œ <S-Tab> (s) ο„œ <S-Tab> (i) ο„œ <Tab> (i) 
    β—‹ nvim-lastplace ξͺ† BufRead 
    β—‹ nvim-lint ξͺ† LazyFile 
    β—‹ nvim-lspconfig ξͺ† LazyFile 
    β—‹ nvim-snippets ο’‡ nvim-cmp 
    β—‹ nvim-ts-autotag ξͺ† LazyFile 
    β—‹ persistence.nvim ξͺ† BufReadPre ο„œ <leader>ql ο„œ <leader>qd ο„œ <leader>qs 
    β—‹ telescope-fzf-native.nvim ο’‡ telescope.nvim 
    β—‹ telescope.nvim ξ―‡ Telescope ο„œ <leader>gc ο„œ <leader>gs ο„œ <leader>s" ο„œ <leader>sa ο„œ <leader>sb ο„œ <leader>sc ο„œ <leader>sC ο„œ <leader>sd ο„œ <leader>sD ο„œ <leader>sg ο„œ <leader>sG ο„œ <leader>sh ο„œ <leader>sH ο„œ <leader>sj ο„œ <leader>sk ο„œ <leader>sl ο„œ <leader>sM ο„œ <leader>sm ο„œ <leader>so ο„œ <leader>sR ο„œ <leader>sq ο„œ <leader>sw ο„œ <leader><space> ο„œ <leader>sw (v) ο„œ <leader>sW (v) ο„œ <leader>uC ο„œ <leader>ss ο„œ <leader>sS ο„œ <leader>sW ο„œ <leader>, ο„œ <leader>/ ο„œ <leader>: ο„œ <leader>fb ο„œ <leader>fc ο„œ <leader>ff ο„œ <leader>fF ο„œ <leader>fg ο„œ <leader>fr ο„œ <leader>fR 
    β—‹ todo-comments.nvim ξͺ† BufRead ξͺ† LazyFile ξ―‡ TodoTrouble ξ―‡ TodoTelescope ο„œ [t ο„œ <leader>xt ο„œ ]t ο„œ <leader>xT ο„œ <leader>st ο„œ <leader>sT 
    β—‹ true-zen.nvim ο„œ <leader>zn (v) ο„œ <leader>zf ο„œ <leader>zm ο„œ <leader>za ο„œ <leader>zn 
    β—‹ vimtex ο€– tex 
    β—‹ vimwiki ξͺ† BufEnter *.md ο„œ <leader>wt ο„œ <leader>ww 
    β—‹ zen-mode.nvim ξ―‡ ZenMode 

and this is my lazy setup

return {
  {
    "jghauser/papis.nvim",
    dependencies = {
      "kkharji/sqlite.lua",
      "MunifTanjim/nui.nvim",
      "pysan3/pathlib.nvim",
      "nvim-neotest/nvim-nio",
      -- if not already installed, you may also want:
      -- "nvim-telescope/telescope.nvim",
      -- "hrsh7th/nvim-cmp",
    },
    config = function()
      require("papis").setup({
        -- Your configuration goes here
      })
    end,
  },
}
jghauser commented 1 month ago

It looks like lazy.nvim is trying to install the plugin with luarocks and that fails. While I intend to move more to a luarocks setup, the lazy installation instructions should actually work without luarocks. Maybe there is some way to tell lazy to install things normally?

I'll investigate and see how I can update the installation instructions so that they work with luarocks as that might be required in the future (I have some improvements in mind that will require this). I don't use lazy though so this might take a few days.

jghauser commented 1 month ago

@Enrico68, can you try something like the following (stolen from neorg):

{
    "jghauser/papis.nvim",
    lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
    version = "*", -- Pin Neorg to the latest stable release
    config = true,
}

If I understand things correctly, this should install papis.nvim with luarocks. Make sure you have yq and sqlite installed as well. Let me know if this works :).

If you want to adjust papis.nvim's settings, it's best to add a opts = {} table (you can then remove the config = true).

Enrico68 commented 1 month ago

Now installation goes smooth,

    ● papis.nvim 1.51ms ξ«“ start
        dir     /Users/enricopirani/.local/share/lunarvim/site/pack/lazy/opt/papis.nvim
        url     https://github.com/jghauser/papis.nvim
        version 0.6.1
        tag     v0.6.1
        branch  main
        commit  2ccc319
        readme  README.md
        help    |papis.txt|

but cannot run the command Papis search

jghauser commented 1 month ago

What happens when you do Papis search? Have you tried running Papis reload config and then Papis reload data? As a last resort, please enable the debug module (see README), and post the logs here. Thanks!

Enrico68 commented 1 month ago

When I try Papis search got Papis: unknown command: search. with Papis reload data. Get this error

Error executing Lua callback: ...unarvim/site/pack/lazy/opt/papis.nvim/lua/papis/data.lua:155: attempt to index a nil value
stack traceback:
        ...unarvim/site/pack/lazy/opt/papis.nvim/lua/papis/data.lua:155: in function 'reset_db'
        ...vim/site/pack/lazy/opt/papis.nvim/lua/papis/commands.lua:20: in function 'impl'
        ...vim/site/pack/lazy/opt/papis.nvim/lua/papis/commands.lua:53: in function <...vim/site/pack/lazy/opt/papis.nvim/lua/papis/commands.lua:42>

I have updated the lazy config

{
    "jghauser/papis.nvim",
    lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
    version = "*", -- Pin Neorg to the latest stable release

      dependencies = {
        "kkharji/sqlite.lua",
        "MunifTanjim/nui.nvim",
        "pysan3/pathlib.nvim",
        "nvim-neotest/nvim-nio",
        -- if not already installed, you may also want:
        -- "nvim-telescope/telescope.nvim",
        -- "hrsh7th/nvim-cmp",

      },
    config = true,

    enable_modules = {
      ["search"] = true,          -- Enables/disables the search module
      ["completion"] = true,      -- Enables/disables the completion module
      ["at-cursor"] = true,  -- Enables/disables the at-cursor module
      ["formatter"] = true,       -- Enables/disables the formatter module
      ["colors"] = true,          -- Enables/disables default highlight groups (you
                                  -- probably want this)
      ["base"] = true,            -- Enables/disables the base module (you definitely
                                  -- want this)
      ["debug"] = true,          -- Enables/disables the debug module (useful to
                                  -- troubleshoot and diagnose issues)
    },

},
jghauser commented 1 month ago

I don't have lazy or lunarvim, but I think this isn't how plugins are configured. Maybe try something like:

{
  "jghauser/papis.nvim",
  lazy = false,    -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
  version = "*",   -- Pin Papis.nvim to the latest stable release
  opts = {
    enable_modules = {
      ["debug"] = true,      -- Enables/disables the debug module (useful to
      -- troubleshoot and diagnose issues)
    },
  },
}

AFAIK you shouldn't need to specify the dependencies and the options need to be inside the opts table. Can you also run checkhealth papis and see what that shows? This config should also enable the debug module which should give you logs (you can use Papis debug info to see where they are saved).

Enrico68 commented 1 month ago

when I run checkhealth I get this error:

E5009: Invalid $VIMRUNTIME: /Users/enricopirani/Downloads/nvim-macos-x86_64/share/nvim/runtime
Error executing lua: .../nvim-macos-x86_64/share/nvim/runtime/lua/vim/health.lua:409: FileType Autocommands for "checkhealth": Vim(append):Error executing lua callback: ...86_64/share/nvim/runtime/lua/vim/treesitter/langu
age.lua:107: no parser for 'yaml' language, see :help treesitter-parsers
stack traceback:
        [C]: in function 'error'
        ...86_64/share/nvim/runtime/lua/vim/treesitter/language.lua:107: in function 'add'
        ...s-x86_64/share/nvim/runtime/lua/vim/treesitter/query.lua:250: in function 'fn'
        ...acos-x86_64/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'parse'
        ...pack/lazy/opt/papis.nvim/lua/papis/completion/source.lua:36: in main chunk
        [C]: in function 'require'
        ...e/pack/lazy/opt/papis.nvim/lua/papis/completion/init.lua:22: in function 'setup'
        ...unarvim/site/pack/lazy/opt/papis.nvim/lua/papis/init.lua:93: in function 'start'
        ...unarvim/site/pack/lazy/opt/papis.nvim/lua/papis/init.lua:20: in function <...unarvim/site/pack/lazy/opt/papis.nvim/lua/papis/init.lua:18>
        [C]: in function 'setfiletype'
        .../nvim-macos-x86_64/share/nvim/runtime/lua/vim/health.lua:409: in function '_check'
        [string "<nvim>"]:1: in main chunk
stack traceback:
        [C]: in function 'setfiletype'
        .../nvim-macos-x86_64/share/nvim/runtime/lua/vim/health.lua:409: in function '_check'
        [string "<nvim>"]:1: in main chunk
jghauser commented 1 month ago

That indicates that the neovim treesitter parser for yaml isn't installed. Can you install that and try again?

Enrico68 commented 1 month ago

TS for yaml installed . Still errors after checkhealth papis

E5009: Invalid $VIMRUNTIME: /Users/enricopirani/Downloads/nvim-macos-x86_64/share/nvim/runtime
Error executing lua: .../nvim-macos-x86_64/share/nvim/runtime/lua/vim/health.lua:409: FileType Autocommands for "checkhealth": Vim(append):Error executing lua callback: ...lunarvim/site/pack/lazy/opt/papis.nvim/lua/papis/
log.lua:137: /Users/enricopirani/.local/share/lvim/papis.nvim.log: Too many open files
stack traceback:
        [C]: in function 'assert'
        ...lunarvim/site/pack/lazy/opt/papis.nvim/lua/papis/log.lua:137: in function 'debug'
        ...m/site/pack/lazy/opt/papis.nvim/lua/papis/fs-watcher.lua:225: in function 'start'
        ...m/site/pack/lazy/opt/papis.nvim/lua/papis/fs-watcher.lua:216: in function 'init'
        ...unarvim/site/pack/lazy/opt/papis.nvim/lua/papis/init.lua:108: in function 'start'
        ...unarvim/site/pack/lazy/opt/papis.nvim/lua/papis/init.lua:20: in function <...unarvim/site/pack/lazy/opt/papis.nvim/lua/papis/init.lua:18>
        [C]: in function 'setfiletype'
        .../nvim-macos-x86_64/share/nvim/runtime/lua/vim/health.lua:409: in function '_check'
        [string "<nvim>"]:1: in main chunk
stack traceback:
        [C]: in function 'setfiletype'
        .../nvim-macos-x86_64/share/nvim/runtime/lua/vim/health.lua:409: in function '_check'
        [string "<nvim>"]:1: in main chunk
Error detected while processing CursorHold Autocommands for "*"..function <SNR>13_HandleActivity[6]..<SNR>13_GetLastHeartbeat:
line    5:
E484: Can't open file /Users/enricopirani/.wakatime/vim_shared_state
Error detected while processing CursorHold Autocommands for "*"..function <SNR>13_HandleActivity[13]..<SNR>13_AppendHeartbeat[22]..<SNR>13_SetLastHeartbeat:
line    5:
E482: Can't open file /Users/enricopirani/.wakatime/vim_shared_state for writing: too many open files
Error detected while processing CursorHold Autocommands for "*"..function <SNR>13_HandleActivity[26]..<SNR>13_SendHeartbeats:
line   74:
E903: Process failed to start: too many open files: "/bin/sh"
Enrico68 commented 1 month ago

After clean reset, and installing just papis got this from checkhealth

papis: require("papis.health").check()

- ERROR Failed to run healthcheck for "papis" plugin. Exception:
  ...e/pack/lazy/opt/papis.nvim/lua/papis/completion/init.lua:22: loop or previous error loading module 'papis.completion.source'
jghauser commented 1 month ago

Can you see if you can access the logs? That would really be very useful. At the moment the only thing I can imagine going wrong is that you're lacking the cmp (and possibly telescope) plugins. cmp is needed for the completion module and telescope for the search module. They are not installed by default because they are optional dependencies (you can use papis.nvim without those modules). The README explains all this. If you have them installed, then seeing the logs would be great!

EDIT: on second thought, it's probably not a missing cmp. That should just exit the module before reaching line 22. A look at the log might really be useful :)

jghauser commented 1 week ago

Going to close this as I've changed various things with the healthcheck. Feel free to reopen if the issue remains!