rest-nvim / rest.nvim

A fast Neovim http client written in Lua
GNU General Public License v3.0
1.61k stars 142 forks source link

unable to install v2 #312

Closed mhuggins7278 closed 8 months ago

mhuggins7278 commented 8 months ago

On my Mac running Sonoma 14.4 I'm unable to install the luarock.nvim dependency.

For some reason, it's unable to install Luajit. I don't have a good error message just yet but thought someone here might be able to point me in the right direction. Here is my config running neovim nightly.

return {
  {
    "vhyrro/luarocks.nvim",
    opts = {
      rocks = { "lua-curl", "nvim-nio", "mimetypes", "xml2lua" }, -- Specify LuaRocks packages to install
    },
    config = function()
      require("luarocks").setup({})
    end,
  },
  {
    "rest-nvim/rest.nvim",
    ft = "http",
    lazy = false,
    keys = {
      {
        "<leader>xh",
        "<cmd>Rest run<cr>",
        desc = "RestNvim",
      },
    },
    dependencies = { "luarocks.nvim" },
    config = function()
      require("rest-nvim").setup()
    end,
  },
}
breenbo commented 8 months ago

Exactly the same on my side, I have a "Using DIctionary as string" when installing luajit...

Neovim version 0.9.5 with LuaJIT 2.1.1703358377

NTBBloodbath commented 8 months ago

Hi there!

Could you please try installing luarocks.nvim using the go-away-python which removes the hererocks dependency that could be failing? Take a look at luarocks.nvim's author comment in #306 for more information in case something else goes wrong or if you want to see the instructions for it

mhuggins7278 commented 8 months ago

@NTBBloodbath that did the trick. Thank you