Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLUGIN REQUEST] zotcite #2811

Open
martiege opened this issue Jan 9, 2025 · 1 comment
Open

[PLUGIN REQUEST] zotcite #2811

martiege opened this issue Jan 9, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@martiege
Copy link

martiege commented Jan 9, 2025

Field Description
Plugin zotcite
Homepage https://github.com/jalvesaq/zotcite
Nixpkgs false

Extra Information

I have had this installed to my nixvim in an ad-hoc fashion for a while, but after a recent update, nix flake check stopped working:

{ pkgs
, ...
}:
{
  extraConfigLua = ''
    require("zotcite").setup({

    })
  '';

  extraPython3Packages = pp: [
    pp.pyqt5
    pp.poppler-qt5
  ];

  extraPlugins =
    let
      zotcite = pkgs.vimUtils.buildVimPlugin {
        name = "zotcite";
        src = pkgs.fetchFromGitHub {
          owner = "jalvesaq";
          repo = "zotcite";
          rev = "a6d1eb8a8a8555aef814979a385d03165e2f8922";
          hash = "sha256-9XEhXfE4b8YMS1YRHpQUhjvRhdJmK/L2qKJGYsuploY=";
        };
      };
    in
    [ zotcite ];
}

Related issues on nixpkgs:
NixOS/nixpkgs#326982
NixOS/nixpkgs#326983

As an aside, the nix flake check command seems to fail when trying to get some telescope modules, though I do have that enabled in my config... Is there some way someone knows how to fix this, or disable this check for the relevant modules?

https://cache.nixos.org/8gvdp8b937ck78f7hjd45niry5ypdmv0.narinfo
structuredAttrs is enabled
Sourcing vim-gen-doc-hook
Sourcing vim-command-check-hook.sh
Using vimCommandCheckHook
Sourcing neovim-require-check-hook.sh
Using neovimRequireCheckHook
Running phase: unpackPhase
@nix {"action":"setPhase","phase":"unpackPhase"}
unpacking source archive /nix/store/sissx6lpvfmaqyxzrjqn575dfgis4cr5-source
source root is source
Running phase: patchPhase
@nix {"action":"setPhase","phase":"patchPhase"}
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"}
Running phase: configurePhase
@nix {"action":"setPhase","phase":"configurePhase"}
Running phase: buildPhase
@nix {"action":"setPhase","phase":"buildPhase"}
Running phase: checkPhase
@nix {"action":"setPhase","phase":"checkPhase"}
no Makefile or custom checkPhase, doing nothing
Running phase: installPhase
@nix {"action":"setPhase","phase":"installPhase"}
Running phase: fixupPhase
@nix {"action":"setPhase","phase":"fixupPhase"}
Executing vimPluginGenTags
Building help tags
Finished executing vimPluginGenTags
shrinking RPATHs of ELF executables and libraries in /nix/store/8gvdp8b937ck78f7hjd45niry5ypdmv0-vimplugin-zotcite
checking for references to /tmp/nix-build-vimplugin-zotcite.drv-0/ in /nix/store/8gvdp8b937ck78f7hjd45niry5ypdmv0-vimplugin-zotcite...
patching script interpreter paths in /nix/store/8gvdp8b937ck78f7hjd45niry5ypdmv0-vimplugin-zotcite
Running phase: vimCommandCheckHook
@nix {"action":"setPhase","phase":"vimCommandCheckHook"}
Executing vimCommandCheckHook
Running phase: neovimRequireCheckHook
@nix {"action":"setPhase","phase":"neovimRequireCheckHook"}
Executing neovimRequireCheckHook
nvimRequireCheck is empty; entering discovery mode
Running module discovery in source directory...
lua/zotcite/get.lua
lua/zotcite/init.lua
lua/zotcite/config.lua
lua/zotcite/utils.lua
lua/zotcite/seek.lua
Discovered modules: zotcite.get zotcite zotcite.config zotcite.utils zotcite.seek
Starting require checks
Attempting to require module: zotcite.get
Error detected while processing pre-vimrc command line:
E5108: Error executing lua ...7hjd45niry5ypdmv0-vimplugin-zotcite/lua/zotcite/seek.lua:1: module 'telescope.pickers' not found:
	no field package.preload['telescope.pickers']
	no file './telescope/pickers.lua'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/share/luajit-2.1/telescope/pickers.lua'
	no file '/usr/local/share/lua/5.1/telescope/pickers.lua'
	no file '/usr/local/share/lua/5.1/telescope/pickers/init.lua'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/share/lua/5.1/telescope/pickers.lua'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/share/lua/5.1/telescope/pickers/init.lua'
	no file './telescope/pickers.so'
	no file '/usr/local/lib/lua/5.1/telescope/pickers.so'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/lib/lua/5.1/telescope/pickers.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './telescope.so'
	no file '/usr/local/lib/lua/5.1/telescope.so'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/lib/lua/5.1/telescope.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
	[C]: in function 'require'
	...7hjd45niry5ypdmv0-vimplugin-zotcite/lua/zotcite/seek.lua:1: in main chunk
	[C]: in function 'require'
	...f7hjd45niry5ypdmv0-vimplugin-zotcite/lua/zotcite/get.lua:3: in main chunk
	[C]: in function 'require'
	[string ":lua"]:1: in main chunk
Entering Ex mode.  Type "visual" to go to Normal mode.
:Failed to require module: zotcite.get
Attempting to require module: zotcite
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: zotcite
Attempting to require module: zotcite.config
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: zotcite.config
Attempting to require module: zotcite.utils
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: zotcite.utils
Attempting to require module: zotcite.seek
Error detected while processing pre-vimrc command line:
E5108: Error executing lua ...7hjd45niry5ypdmv0-vimplugin-zotcite/lua/zotcite/seek.lua:1: module 'telescope.pickers' not found:
	no field package.preload['telescope.pickers']
	no file './telescope/pickers.lua'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/share/luajit-2.1/telescope/pickers.lua'
	no file '/usr/local/share/lua/5.1/telescope/pickers.lua'
	no file '/usr/local/share/lua/5.1/telescope/pickers/init.lua'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/share/lua/5.1/telescope/pickers.lua'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/share/lua/5.1/telescope/pickers/init.lua'
	no file './telescope/pickers.so'
	no file '/usr/local/lib/lua/5.1/telescope/pickers.so'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/lib/lua/5.1/telescope/pickers.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './telescope.so'
	no file '/usr/local/lib/lua/5.1/telescope.so'
	no file '/nix/store/j3ccnqidscaksvqhqvzql80i09vwnzv8-luajit-2.1.1713773202/lib/lua/5.1/telescope.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
	[C]: in function 'require'
	...7hjd45niry5ypdmv0-vimplugin-zotcite/lua/zotcite/seek.lua:1: in main chunk
	[C]: in function 'require'
	[string ":lua"]:1: in main chunk
Entering Ex mode.  Type "visual" to go to Normal mode.
:Failed to require module: zotcite.seek

======================================================
�[0;32mRequire check succeeded for the following modules:�[0m
  �[0;32m- zotcite�[0m
  �[0;32m- zotcite.config�[0m
  �[0;32m- zotcite.utils�[0m
All lua modules were checked.

�[0;31mRequire check failed for the following modules:�[0m
  �[0;31m- zotcite.get�[0m
  �[0;31m- zotcite.seek�[0m
======================================================
@martiege martiege added the enhancement New feature or request label Jan 9, 2025
@GaetanLepage
Copy link
Member

Opened NixOS/nixpkgs#372370.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants