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

Can't Install Luarocks with PackerRocks on Windows #1274

Open
cjhillbrand opened this issue Sep 18, 2024 · 0 comments
Open

Can't Install Luarocks with PackerRocks on Windows #1274

cjhillbrand opened this issue Sep 18, 2024 · 0 comments
Labels
bug v1 An issue or PR relevant to packer v2

Comments

@cjhillbrand
Copy link

  • nvim --version:

  • NVIM v0.11.0-dev-364+g73ae7d44a
    Build type: RelWithDebInfo
    LuaJIT 2.1.1720049189
    Run "nvim -V1 -v" for more info

  • git --version:
    git version 2.46.0.windows.1

  • Operating system/version:
    OS Name: Microsoft Windows 11 Enterprise
    OS Version: 10.0.22631 N/A Build 22631

  • Terminal name/version:
    powershell 7.4.5

Steps to reproduce

:lua require'packer.luarocks'.install_commands()
:PackerRocks install luasocket

Actual behaviour

[packer.nvim] [ERROR 17:20:22] async.lua:20: Error in coroutine: ...te\pack\packer\start\packer.nvim/lua/packer/luarocks.lua:87: attempt to index upvalue 'config' (a nil value)
[packer.nvim] [ERROR 17:20:24] async.lua:20: Error in coroutine: ...te\pack\packer\start\packer.nvim/lua/packer/luarocks.lua:169: attempt to index local 'user_shell' (a nil value)

Expected behaviour

The successful installation of luasocket and the ability to run `:lua require('sockets')

packer files

Plugin specification file(s)

Post or link your plugin specification files here, if you aren't able to provide a minimal
reproducer

aded by calling lua require('plugins') from your init.vim

-- Only required if you have packer configured as opt

vim.cmd [[packadd packer.nvim]]

return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'

-- Simple plugins can be specified as strings
use 'rstacruz/vim-closer'

use {
    'nvim-telescope/telescope.nvim', tag = '0.1.5',
    -- or                            , branch = '0.1.x',
    requires = { { 'nvim-lua/plenary.nvim' } }
}

require('rose-pine').setup({
    --- @usage 'auto'|'main'|'moon'|'dawn'
    variant = 'moon',
    --- @usage 'main'|'moon'|'dawn'
    dark_variant = 'moon'
})

use({ 'rose-pine/neovim', as = 'rose-pine' })

vim.cmd('colorscheme rose-pine')


use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use('theprimeagen/harpoon')
use('mbbill/undotree')
use("tpope/vim-fugitive")

use {
    'VonHeikemen/lsp-zero.nvim',
    branch = 'v3.x',
    requires = {
        --- Uncomment the two plugins below if you want to manage the language servers from neovim
        { 'williamboman/mason.nvim' },
        { 'williamboman/mason-lspconfig.nvim' },

        -- LSP Support
        { 'neovim/nvim-lspconfig' },
        -- Autocompletion
        { 'hrsh7th/nvim-cmp' },
        { 'hrsh7th/cmp-nvim-lsp' },
        { 'L3MON4D3/LuaSnip' },
    }
}

use('mfussenegger/nvim-jdtls')

-- install without yarn or npm
use({
    "iamcco/markdown-preview.nvim",
    run = function() vim.fn["mkdp#util#install"]() end,
})

use({"vhyrro/luarocks.nvim"})

local os = System.get_os()
local note_path = "C:/Users/cjhillbrand/second-brain/second-brain"

use({
    "epwalsh/obsidian.nvim",
    tag = "*", -- recommended, use latest release instead of latest commit
    requires = {
        "nvim-lua/plenary.nvim",
        "telescope.nvim",
    },
    config = function()
        require("obsidian").setup({
            workspaces = {
                {
                    name = "personal",
                    path = note_path,
                }
            },
            picker = {
                name = "telescope.nvim"
            },

        })
    end,
})

use "b0o/schemastore.nvim"

use "tpope/vim-dadbod"
use 'kristijanhusak/vim-dadbod-ui'
use 'kristijanhusak/vim-dadbod-completion'
use 'lewis6991/gitsigns.nvim'

end)

packer log file

Post the contents of ~/.cache/nvim/packer.nvim.log here
Does not exist on windows :(

packer compiled file

Post the contents of packer_compiled.vim here

@cjhillbrand cjhillbrand added bug v1 An issue or PR relevant to packer v2 labels Sep 18, 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