Skip to content

Rust expToLua deprecation warning #1362

@connor-grady

Description

@connor-grady

I have confirmed that this is a bug related to nvf

  • This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in nvf.
  • I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.

Description

I recently changed my Rust config and started getting deprecation warnings about expToLua, presumably due to this line:

then expToLua cfg.lsp.package

Looking at the git history, it seems like it was changed to toLuaObject in 3e48f13 and then changed back in 99b003f. Was this a mistake, or was there a reason for the change back?

Installation Method

NixOS Module (nixosModules.default)

Installation Method (Other)

No response

nvf Version

master

Reproduction steps

Set vim.languages.rust.lsp.package to any list of strings.

Expected behavior

Not receive deprecation warnings.

Actual Behavior

Received deprecation warnings.

System Information

❯ nix-info --markdown
 - system: `"x86_64-linux"`
 - host os: `Linux 6.18.5-zen1, NixOS, 26.05 (Yarara), 26.05.20260121.88d3861`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.94.0
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/connor/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/connor/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/connor/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/connor/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/nscyf9cwhkzzczlhgm397nd240yfvgvs-lix-2.94.0/share`
 - nixpkgs: `/nix/store/m6ji2a8jp7w4ck7vvrjh4grs4p3n7r26-source`

Relevant log output

trace: evaluation warning: expToLua is deprecated use toLuaObject instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions