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

PackerRocks install rocks using the wrong version of Lua #1276

Open
FredericHamel opened this issue Dec 12, 2024 · 0 comments
Open

PackerRocks install rocks using the wrong version of Lua #1276

FredericHamel opened this issue Dec 12, 2024 · 0 comments
Labels
bug v1 An issue or PR relevant to packer v2

Comments

@FredericHamel
Copy link
Contributor

FredericHamel commented Dec 12, 2024

The PackerRocks command uses the latest version of lua available which cause issue. NVIM is not using the latest version of lua.

  • nvim --version:
NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1731601260
Run "nvim -V1 -v" for more info
  • git --version: git version 2.47.1
  • Operating system/version: Linux 6.12.1-artix1-1 #1 SMP PREEMPT_DYNAMIC Fri, 22 Nov 2024 22:38:24 +0000 x86_64 GNU/Linux
  • Terminal name/version: foot version: 1.19.0 +pgo +ime +graphemes +toplevel-icon -assertions

Steps to reproduce

  1. Have a version of lua more recent than the one in NVIM. THe version of lua I have is Lua 5.4.7.
  2. Enable PackerRocks commands
  3. Install a module using that command.

Actual behaviour

The module is installed using Lua 5.4 which is not the right version of lua.

Expected behaviour

The module is installed using the version of lua related to NVIM. In my case it is lua 5.1

packer files

Plugin specification file(s)

-- Packer bootstrap
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
local packer_bootstrap = false
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
end

--
-- Add packer.lua
vim.cmd [[ packadd packer.nvim ]]

return require('packer').startup({function(use)
-- My plugins here
use { "wbthomason/packer.nvim" }

use {
"nvim-neorg/neorg",
rocks = { "lua-utils.nvim", "pathlib.nvim" },
-- rocks = { "lua-utils.nvim", "nvim-nio", "nui.nvim", "plenary.nvim", "pathlib.nvim" },
-- tag = "8.x.x", -- Pin Neorg to the latest stable release
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {},
-- ["core.norg.concealer"] = {},
["core.dirman"] = { -- Manage your directories with Neorg
config = {
workspaces = {
my_workspace = "~/neorg/"
}
}
},
["core.ui.calendar"] = {}
}
}
end,
requires = {
{
"nvim-lua/plenary.nvim",
opt = true,
},
}
}

-- use '/home/frederic/Github/doas.nvim'

-- Syntax checker
-- use { 'vim-syntastic/syntastic', ft = {'c', 'cpp'} }

-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end

end})

@FredericHamel FredericHamel added bug v1 An issue or PR relevant to packer v2 labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug v1 An issue or PR relevant to packer v2
Projects
None yet
Development

No branches or pull requests

1 participant