Skip to content

[BUG] Config fails to load 'spring_boot' module after launch #4212

@nathannino

Description

@nathannino

Plugin

java

Nixpkgs Release

unstable

Home Manager Release

None

I have read the FAQ

  • I have read the FAQ and my bug is not listed there.

Description

The java plugin attempts to download it's dependencies automatically when neovim loads the configuration. This will first fail if it doesn't find an unzipping utility. If it does find an unzipping utility, the configuration will still fail to load with this error :

Error detected while processing /nix/store/x1rd1wjcdibdbwf6b538n020hvnxjpal-init.lua:
E5113: Error while calling lua chunk: ...mPackages/start/nvim-java/lua/java/startup/lsp_setup.lua:27: module 'spring_boot' not found:
        no field package.preload['spring_boot']
        no file '/nix/store/4qxq4arv32ly13kl3g0m5q80gm3a35xr-luajit-2.1.1741730670/share/lua/5.1/spring_boot.lua'
        no file '/nix/store/rizkaz7ccp9gh69s27q7nf406nqmcnbf-luajit-2.1.1741730670-env/share/lua/5.1/spring_boot.lua'
        no file '/nix/store/rizkaz7ccp9gh69s27q7nf406nqmcnbf-luajit-2.1.1741730670-env/share/lua/5.1/spring_boot/init.lua'
        no file '/nix/store/rizkaz7ccp9gh69s27q7nf406nqmcnbf-luajit-2.1.1741730670-env/lib/lua/5.1/spring_boot.so'
stack traceback:
        [C]: in function 'require'
        ...mPackages/start/nvim-java/lua/java/startup/lsp_setup.lua:27: in function 'setup'
        ...k-dir/pack/myNeovimPackages/start/nvim-java/lua/java.lua:82: in function 'setup'
        /nix/store/x1rd1wjcdibdbwf6b538n020hvnxjpal-init.lua:13: in main chunk

Minimal, Reproducible Example (MRE)

{ pkgs, ...}:
{
    environment.systemPackages = [
        pkgs.unzip
    ];
    programs.nixvim = {
        enable = true;
        plugins = {
            java.enable = true;
        };
    };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions