Closed Enrico68 closed 1 week 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.
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,
},
}
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.
@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
).
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
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!
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)
},
},
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).
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
That indicates that the neovim treesitter parser for yaml
isn't installed. Can you install that and try again?
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"
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'
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 :)
Going to close this as I've changed various things with the healthcheck. Feel free to reopen if the issue remains!
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
Cannot start the plugin. Any help would appreciated Enrico