nvim-neorg / neorg

Modernity meets insane extensibility. The future of organizing your life in Neovim.
GNU General Public License v3.0
6.29k stars 209 forks source link

Luarocks Issues Thread #1342

Open vhyrro opened 5 months ago

vhyrro commented 5 months ago

If you're probably here you're either angry or you're sad :|

The latest update, 8.0.0, has been a breaking change for users. This isn't a breaking change just because I felt like it, rather it paves the way forward for making Neorg expansive and more stable than it was before. We just need to jump through the initial hurdles.

If you have issues, please read the blog post I made. It will have you covered on how to fix things.

If you don't want to deal with the breakages, feel free to roll back to version v7.0.0 - everything will continue to run there.

If you're having errors in lazy, I highly encourage you to restart Neovim and try manually rerunning :Lazy build luarocks.nvim and, if that succeeds, running :Lazy build neorg afterwards. If you get any errors which you do not understand, please post them here!

Thank you lot for the patience! Happy note taking.

EDIT:

If you have a build = ":Neorg sync-parsers" step in your Neorg configuration be sure to remove it. That'll overwrite the build.lua build step and make the build process fail.

roland-5 commented 5 months ago

I use lazy and :Lazy build luarocks.nvim and :Lazy build neorg indeed helped for error that I had. Should we install luarock package from our distribution repository too?

vhyrro commented 5 months ago

Nope, you don't need the luarocks package from your distro :)

Yeah, sometimes manually rerunning the build steps is what fixes it. Lazy is very unpredictable when it comes to build steps :man_shrugging:

pysan3 commented 5 months ago

For those who are on Arch Linux and seeing a build error similar to...

❌ Performing luarocks `./configure` if Unix systems
...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/build.lua:126: Failed to install luarocks: 
Configuring LuaRocks version dev...

Lua interpreter found: /sbin/luajit
Checking if /sbin/luajit is Lua version 5.1... yes
lua.h for Lua 5.1 not found (tried //include/lua/5.1/lua.h //include/lua5.1/lua.h //include/lua-5.1/lua.h //include/lua51/lua.h //include/lua.h //include/luajit-2.1/lua.h)

If the development files for Lua (headers and libraries)
are installed in your system, you may need to use the
--with-lua or --with-lua-include flags to specify their location.

If those files are not yet installed, you need to install
them using the appropriate method for your operating system.

Run ./configure --help for details on flags.

configure failed.

change your luarocks.nvim config as follows.

{
  "vhyrro/luarocks.nvim",
  opts = {
    luarocks_build_args = {
      "--with-lua-include=/usr/include",
    },
  },
}
simonhughxyz commented 5 months ago

I'm trying to install it with the lazy method but I keep getting an error and neorg won't load:

Failed to run `config` for neorg

.../lazy/neorg/lua/neorg/modules/core/highlights/module.lua:433: module 'nvim-treesitter.query' not found:No LuaRocks module found for nv
im-treesitter.query                                                                                                                      
^Ino field package.preload['nvim-treesitter.query']                                                                                      
cache_loader: module nvim-treesitter.query not found                                                                                     
cache_loader_lib: module nvim-treesitter.query not found                                                                                 
^Ino file './nvim-treesitter/query.lua'                                                                                                  
^Ino file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1/nvim-treesitter/query.lua'                                         
^Ino file '/usr/local/share/lua/5.1/nvim-treesitter/query.lua'                                                                           
^Ino file '/usr/local/share/lua/5.1/nvim-treesitter/query/init.lua'                                                                      
^Ino file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/nvim-treesitter/query.lua'                                            
^Ino file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/nvim-treesitter/query/init.lua'                                       
^Ino file '/home/simon/.local/share/nvim/lazy/luarocks.nvim/.rocks/share/lua/5.1/nvim-treesitter/query.lua'                              
^Ino file '/home/simon/.local/share/nvim/lazy/luarocks.nvim/.rocks/share/lua/5.1/nvim-treesitter/query/init.lua'                         
^Ino file '/home/simon/.luarocks/share/lua/5.1/nvim-treesitter/query.lua'                                                                
^Ino file '/home/simon/.luarocks/share/lua/5.1/nvim-treesitter/query/init.lua'                                                           
^Ino file './nvim-treesitter/query.so'                                                                                                   
^Ino file '/usr/local/lib/lua/5.1/nvim-treesitter/query.so'                                                                              
^Ino file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/nvim-treesitter/query.so'                                               
^Ino file '/usr/local/lib/lua/5.1/loadall.so'                                                                                            
^Ino file '/home/simon/.local/share/nvim/lazy/luarocks.nvim/.rocks/lib/lua/5.1/nvim-treesitter/query.so'                                 
^Ino file '/home/simon/.luarocks/lib/lua/5.1/nvim-treesitter/query.so'                                                                   
^Ino file './nvim-treesitter.so'                                                                                                         
^Ino file '/usr/local/lib/lua/5.1/nvim-treesitter.so'                                                                                    
^Ino file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/nvim-treesitter.so'                                                     
^Ino file '/usr/local/lib/lua/5.1/loadall.so'                                                                                            
^Ino file '/home/simon/.local/share/nvim/lazy/luarocks.nvim/.rocks/lib/lua/5.1/nvim-treesitter.so'                                       
^Ino file '/home/simon/.luarocks/lib/lua/5.1/nvim-treesitter.so'                                                                         

# stacktrace:                                                                                                                            
  - /neorg/lua/neorg/modules/core/highlights/module.lua:433 _in_ **trigger_highlights**                                                  
  - /neorg/lua/neorg/modules/core/highlights/module.lua:420 _in_ **load**                                                                
  - /neorg/lua/neorg/core/modules.lua:403 _in_ **load_module**                                                                           
  - /neorg/lua/neorg/core/modules.lua:335 _in_ **load_module**  
vhyrro commented 5 months ago

@simonhughxyz The error message is slightly different as we're using the luarocks package loader, but the underlying cause looks to be the same - Neorg is trying to initialize before treesitter is activated.

Maybe try:

{
  "nvim-neorg/neorg",
  dependencies = { "luarocks.nvim", "nvim-treesitter" }, -- Add nvim-treesitter here
}

Just for good measure? I'll be revamping that part of the code fairly soon anyway, but it's worth a shot.

simonhughxyz commented 5 months ago
"nvim-treesitter"

This fix did not work

vhyrro commented 5 months ago

Okay, I tried another thing. @simonhughxyz mind updating the plugin and trying again? I removed the old and hacky code related to nvim-treesitter query invalidation, which has been resolved for a while now.

simonhughxyz commented 5 months ago

No sorry, updated all plugin, still did not work. Tried deleting my nvim data folder as well just in case, did not resolve anything.

vhyrro commented 5 months ago

That's odd... are you pinned to the latest stable release by any chance? I pushed the update to the main branch. If so, my bad, I should have made that clear.

I quite literally removed the old code that cause the error, so it continuing to trigger is quite suspicious :sweat_smile:

simonhughxyz commented 5 months ago

Yea, just checked lazy, it says its on commit 388976f. So not latest. Not sure why, I updated neorg and like I said before even tried deleting my data folder.

simonhughxyz commented 5 months ago

Oh hang on, my bad, I had version = "*" in my lazy setup

simonhughxyz commented 5 months ago

Ok, so the latest commit got rid of the error, but neorg still will not load

vhyrro commented 5 months ago

I assume then that it's silently failing to load? All of the people that have mentioned such an error have had their issues resolved via :Lazy build neorg, which forces a rebuild of the project. After restarting Neovim things should start working once more :)

As I mentioned before, lazy has a notoriously weird set of build procedures.

simonhughxyz commented 5 months ago

Ok so I fixed it, it just needs 2 dependancies dependencies = { "luarocks.nvim", "nvim-treesitter/nvim-treesitter" }, Everything works now.

roland-5 commented 5 months ago

@vhyrro I use Arch and @pysan3 method worked for me. I installed luarock from Arch repository, deleted ~/.local/share/nvim to test this, and with his change, everything were downloaded and built without problem this time.

pysan3 commented 5 months ago

@roland-5 The workaround will be officially supported so you don't need to add the line in your config anymore. (Obviously adding luarocks_build_args yourself will finish faster cuz the workaround will need to retry a couple of times.)

xfzv commented 5 months ago

I've just migrated following Adapting your config section, so far so good.

zvpyp commented 5 months ago

I might just add, if you are using fedora, make sure you have installed compat-lua-devel-5.1.5

sudo dnf install compat-lua-devel-5.1.5

The with-lua flag is not necessary since it is installed in a default directory.

Then you do :Lazy build luarocks.nvim and after that :Lazy build neorg

Hope that helps, I was just frustrated searching for the package.

ALVAROPING1 commented 5 months ago

For those who are on Arch Linux and seeing a build error similar to...

❌ Performing luarocks `./configure` if Unix systems
...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/build.lua:126: Failed to install luarocks: 
Configuring LuaRocks version dev...

Lua interpreter found: /sbin/luajit
Checking if /sbin/luajit is Lua version 5.1... yes
lua.h for Lua 5.1 not found (tried //include/lua/5.1/lua.h //include/lua5.1/lua.h //include/lua-5.1/lua.h //include/lua51/lua.h //include/lua.h //include/luajit-2.1/lua.h)

If the development files for Lua (headers and libraries)
are installed in your system, you may need to use the
--with-lua or --with-lua-include flags to specify their location.

If those files are not yet installed, you need to install
them using the appropriate method for your operating system.

Run ./configure --help for details on flags.

configure failed.

if you get an issue similar to this on ubuntu based distros, you need to install the liblua5.1-0-dev package

dearieme commented 5 months ago

Hello, noob question: how do I see the build errors in Lazy?

I'm getting the "Performing luarocks ./configure if Unix systems" message when I run "Lazy build luarocks.nvim" but I can't figure out how to see the full errors. They do not seem to be in ":mess" or "NoiceHistory"

Thanks

pysan3 commented 5 months ago

@dearieme :Notifications

dearieme commented 5 months ago

@pysan3 Thank you, I'm sure I knew that once :)

I'm on Arch and the error suggested that lua 5.1 was explicitly required, so I installed"extra/lua51" ("extra/lua" was already installed but didn't conflict) re-did the Lazy build dance, and it all seems to work fine now.

max397574 commented 5 months ago

I had strange errors with wget when trying to Lazy build neorg. I found out that just wget was broken (tested with wget --version which gave an error) Just uninstalling wget made all the things work

leongjs98 commented 5 months ago

@vhyrro

I was unable to install Neorg v8 with lazy.nvim with the blog post fix here:

in the readme, it says:

Using luarocks Neorg will install itself and these dependencies with their respective versions:

But for me, it didn't install the dependencies

I had to explicitly add these as dependencies to install Neorg v8:

  {
    "vhyrro/luarocks.nvim",
+   dependencies = {
+     "MunifTanjim/nui.nvim",
+     "nvim-neotest/nvim-nio",
+     "nvim-neorg/lua-utils.nvim",
+     "nvim-lua/plenary.nvim"
+   },
    priority = 1000, -- We'd like this plugin to load first out of the rest
    config = true,   -- This automatically runs `require("luarocks-nvim").setup()`
  },

Could you please update your blog post to add these in case someone had the same problem as me?

skbolton commented 5 months ago

I think the nixpkgs overlay flake is going to need an update. On a fresh system I was able to install without warnings but most of neorgs functionality is missing so I think it is in a bad state.

flexagoon commented 5 months ago

The configure script currently doesn't detect lua headers if lua is installed by Homebrew, because they're located in /home/linuxbrew/.linuxbrew/Cellar/lua/5.4.6/include/lua/lua.h

flexagoon commented 5 months ago

Also, for some reason, it tries to find the headers for lua 5.1, which has been deprecated

pysan3 commented 5 months ago

@leongjs98 I don't think you have it setup correctly if you need those lines.

pysan3 commented 5 months ago

@flexagoon You will need lua version 5.1 installed or luajit is even better.

I don't use brew so I'm not sure about the actual package name but if you install it, luarocks build script should be able to pick it up.

FYI lua5.1 is not deprecated or there is a problem with your package manager. You might want to read :h lua-intro for more details.

flexagoon commented 5 months ago

@pysan3 thanks, I installed luarocks from brew and luarocks.nvim built successfully.

However, Neorg still doesn't seem to work for some reason - the :Neorg command doesn't exist and I'm somehow not even getting Treesitter highlighting even though the norg TS parser is installed.

FYI lua5.1 is not deprecated

I see, I assumed it was deprecated because Homebrew said that when I tried to install lua@5.1, turns out Homebrew just deprecates old versions of packages after a while

flexagoon commented 5 months ago

Nevermind, neorg does work, I just have to pass setup opts to it instead of using config = true in Lazy

pysan3 commented 5 months ago

@vhyrro

I was unable to install Neorg v8 with lazy.nvim with the blog post fix here:

in the readme, it says:

Using luarocks Neorg will install itself and these dependencies with their respective versions:

But for me, it didn't install the dependencies

I had to explicitly add these as dependencies to install Neorg v8:

  {
    "vhyrro/luarocks.nvim",
+   dependencies = {
+     "MunifTanjim/nui.nvim",
+     "nvim-neotest/nvim-nio",
+     "nvim-neorg/lua-utils.nvim",
+     "nvim-lua/plenary.nvim"
+   },
    priority = 1000, -- We'd like this plugin to load first out of the rest
    config = true,   -- This automatically runs `require("luarocks-nvim").setup()`
  },

Could you please update your blog post to add these in case someone had the same problem as me?

@leongjs98 What this implies is that you failed to install luarocks.nvim correctly. The whole reason of using luarocks is to pin the dependency version by the developers which with lazy.nvim and your setup it is not possible to do.

I wrote some instructions on how to debug your situation so please take a look. I hope this helps.

https://github.com/pysan3/Norg-Tutorial/blob/main/MIGRATION-v8.md

smsossah commented 5 months ago

All of the solutions I'm seeing here appear to be for lazy.nvim but I'm running into a bunch of errors using packer on a mac. I've tried troubleshooting some of these without success. This was working as expected prior to the Neorg updates. Is there any way you could post a more detailed guide for packer @vhyrro? Thanks!

flexagoon commented 5 months ago

@smsossah there is updated installation code for packer in the readme, did you use that?

https://github.com/nvim-neorg/neorg?tab=readme-ov-file#packernvim

pysan3 commented 5 months ago

@smsossah As it is stated in the README, I do not recommend you use packer.nvim as it is not maintained anymore. I know there's pckr.nvim but I think lewis also moved to lazy but I'm not sure.

You could try to add

  "rcarriga/nvim-notify",
  {
    "vhyrro/luarocks.nvim",
    requires = { "rcarriga/nvim-notify" },
    run = ":source " .. vim.fn.stdpath("data") .. "/site/pack/pckr/opt/luarocks.nvim/build.lua",
    config = function()
      require("luarocks-nvim").setup({})
    end
  },

And restart neovim and see luarocks being installed. You should also see some notifications that it's compiling luarocks.

After that, add neorg back again since run = of neorg requires luarocks to be installed and pckr is not clever enough to resolve this dependency. If you add both at once, both run commands will run in parallel which is too early to execute neorg's run command.

  {
    "nvim-neorg/neorg",
    requires = {
      "vhyrro/luarocks.nvim",
      "rcarriga/nvim-notify",
      "nvim-treesitter/nvim-treesitter",
    },
    run = ":source " .. vim.fn.stdpath("data") .. "/site/pack/pckr/opt/neorg/build.lua",
    config = function()
      require("neorg").setup()
    end,
  },

Again this is not officially tested.

CRAG666 commented 5 months ago

 Error 17:13:21 msg_show.lua_error Lazy build neorg Error executing vim.schedule lua callback: ...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/rocks.lua:27: [luarocks] Failed to install from rockspec Warning: Failed searching manifest: Failed extracting manifest file: failed extracting /home/think-crag/.cache/luarocks/httpsluarocks.org/manifest-5.1.zip Warning: Failed searching manifest: Failed loading manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/: /home/think-crag/.cache/luarocks/httpsraw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest-5.1: No such file or directory Warning: Failed searching manifest: Failed loading manifest for https://luafr.org/luarocks/: /home/think-crag/.cache/luarocks/https___luafr.org_luarocks/manifest-5.1: No such file or directory Warning: Failed searching manifest: Failed downloading http://luarocks.logiceditor.com/rocks/manifest-5.1 - failed downloading http://luarocks.logiceditor.com/rocks/manifest-5.1

Error: Could not satisfy dependency nvim-nio ~> 1.7: No results matching query were found for Lua 5.1. Missing dependencies for neovim-rocks-user-rockspec 0.0-0: nvim-nio ~> 1.7 (not installed) lua-utils.nvim 1.0.2 (not installed) plenary.nvim 0.1.4 (not installed) nui.nvim 0.3.0 (not installed)

neovim-rocks-user-rockspec 0.0-0 depends on nvim-nio ~> 1.7 (not installed)

stack traceback: [C]: in function 'assert' ...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/rocks.lua:27: in function 'install' ...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/rocks.lua:60: in function 'ensure' /home/think-crag/.local/share/nvim/lazy/neorg/build.lua:14: in function </home/think-crag/.local/share/nvim/lazy/neorg/build.lua:9>

morrismuehl commented 5 months ago

Any help for nixos? running :Lazy build luarocks.nvim tells me it can't find lua header files. I have no idea where they are located for nixos tho.

ghost commented 5 months ago

Any help for nixos? running :Lazy build luarocks.nvim tells me it can't find lua header files. I have no idea where they are located for nixos tho.

I'm using nixos as well and this ugly workaround to install luarocks from here as worked for me: https://github.com/pysan3/Norg-Tutorial/blob/main/MIGRATION-v8.md#performing-luarocks-configure-if-unix-systems

I'm stuck at installing neorg though, :Lazy build neorg says that rocks is installed and lazy says neorg installed, but I don't have the :Neorg command and there is no log or notification from neovim or lazy or neorg on what is wrong.

I really hope this luarocks stuff doesn't get any traction, just messes with so many things that would require different workarounds for every system I use (as is seen by this thread of problems).

pysan3 commented 5 months ago

@kavfkah what is the result of :=require("lua-util") :=require("lua-utils")?

Also check neorg is not being lazy loaded or you have cmd = "Neorg" in lazy spec.

If you still cannot make it to work, please come to discord and ping me (same username).

ghost commented 5 months ago

@pysan3

:=require("lua-utils")

20:59:46 msg_show.echo   Notifications 2024-03-27T20:59:42 Messages  INFO {
  construct = <function 1>,
  ensure_nested = <function 2>,
  eval = <function 3>,
  extract = <function 4>,
  filter = <function 5>,
  find = <function 6>,
  inline_pcall = <function 7>,
  insert_or = <function 8>,
  lazy_string_concat = <function 9>,
  list_extend = <function 10>,
  map = <function 11>,
  match = <function 12>,
  mod = {
    add = <function 13>,
    exclude = {
      first = <function 14>,
      last = <function 15>
    },
    modify = <function 16>
  },
  number_wrap = <function 17>,
  pick = <function 18>,
  reparg = <function 19>,
  rfind = <function 20>,
  title = <function 21>,
  to_keys = <function 22>,
  tokenize_path = <function 23>,
  unroll = <function 24>,
  when = <function 25>,
  wrap = <function 26>,
  wrap_cond = <function 27>,
  wrap_cond_not = <function 28>
}

neorg.lua:

local M = {
    "nvim-neorg/neorg",
    dependencies = { "luarocks.nvim" },
    lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
    version = "*", -- Pin Neorg to the latest stable release
    config = true,
}

return M

luarocks.lua:

local M = {
    "vhyrro/luarocks.nvim",
    priority = 1000,
    opts = {
        luarocks_build_args = {
            "--with-lua-include=/nix/store/98blcb69q9qy0k279xjk10lcmfwnd4rg-luajit-2.1.1693350652/include"
        }
    }
}

return M

:Lazy build luarocks.nvim (no output) :Lazy build neorg

20:54:20 msg_show.echo   Notifications  2024-03-27T20:54:15 Messages  INFO 2024-03-27T20:53:57 luarocks.nvim  INFO ⌛ Installing rocks:

nvim-nio ~> 1.7,lua-utils.nvim == 1.0.2,plenary.nvim == 0.1.4,nui.nvim == 0.3.0
2024-03-27T20:53:58 luarocks.nvim  INFO ✅ Installed rocks
pysan3 commented 5 months ago

@kavfkah I'm sorry, it was lua-utils (plural).

Could you update your comment?

ghost commented 5 months ago

@pysan3 ups, updated, didn't check myself what it was supposed to install either, just copy-pasted

pysan3 commented 5 months ago

Thanks @kavfkah

Did you restart neovim after building neorg?

Besides that could you try the followings for neorg spec? (No need to change luarocks.nvim).

TBH I cannot spot anything wrong with your outputs. You do have luarocks.nvim setup correctly and it's working as expected to say the least and this shouldn't be a problem with NixOS either...

ghost commented 5 months ago

Did you restart neovim after building neorg?

Yes, I did that a few times

config = function()
  require("neorg").setup() -- NO arguments to setup()
end,

this fixed it! :Neorg is available now. The version=false didn't matter though, it works both ways with the setup function called, and with none of both if I do config=true again

(btw I then also tried

    require("neorg").setup({
        load = {
            ["core.defaults"] = {},
            ["core.norg.concealer"] = {},
        }
    })

and did the Lazy build luarocks and Neorg again and got this error:

21:43:00 msg_show.echo   Notifications 2024-03-27T21:42:54  ERROR [neorg] (21:42:54)
.../.local/share/nvim/lazy/neorg/lua/neorg/core/modules.lua:447
Unable to load module 'core.norg.concealer'. The module probably does not exist! Stacktrace:  module 'neorg.modules.core.norg.concealer.module' not found:No LuaRocks module found for neorg.modules.core.norg.concealer.module
    no field package.preload['neorg.modules.core.norg.concealer.module']
cache_loader: module neorg.modules.core.norg.concealer.module not found
cache_loader_lib: module neorg.modules.core.norg.concealer.module not found
    no file '/nix/store/s5mxagjxsacpzvpvazh4cgsfnphkd6kj-luajit-2.1.1693350652-env/share/lua/5.1/neorg/modules/core/norg/concealer/module.lua'
    no file '/nix/store/s5mxagjxsacpzvpvazh4cgsfnphkd6kj-luajit-2.1.1693350652-env/share/lua/5.1/neorg/modules/core/norg/concealer/module/init.lua'
    no file '/home/user/.local/share/nvim/lazy/luarocks.nvim/.rocks/share/lua/5.1/neorg/modules/core/norg/concealer/module.lua'
    no file '/home/user/.local/share/nvim/lazy/luarocks.nvim/.rocks/share/lua/5.1/neorg/modules/core/norg/concealer/module/init.lua'
    no file '/home/user/.local/share/nvim/lazy/luarocks.nvim/.rocks/lua/neorg/modules/core/norg/concealer/module.lua'
    no file '/home/user/.local/share/nvim/lazy/luarocks.nvim/.rocks/lua/neorg/modules/core/norg/concealer/module/init.lua'
    no file '/home/user/.luarocks/share/lua/5.1/neorg/modules/core/norg/concealer/module.lua'
    no file '/home/user/.luarocks/share/lua/5.1/neorg/modules/core/norg/concealer/module/init.lua'
    no file '/nix/store/s5mxagjxsacpzvpvazh4cgsfnphkd6kj-luajit-2.1.1693350652-env/lib/lua/5.1/neorg/modules/core/norg/concealer/module.so'
    no file '/home/user/.local/share/nvim/lazy/luarocks.nvim/.rocks/lib/lua/5.1/neorg/modules/core/norg/concealer/module.so'
    no file '/home/user/.luarocks/lib/lua/5.1/neorg/modules/core/norg/concealer/module.so'
    no file '/nix/store/s5mxagjxsacpzvpvazh4cgsfnphkd6kj-luajit-2.1.1693350652-env/lib/lua/5.1/neorg.so'
    no file '/home/user/.local/share/nvim/lazy/luarocks.nvim/.rocks/lib/lua/5.1/neorg.so'
    no file '/home/user/.luarocks/lib/lua/5.1/neorg.so'

but I am not sure if it should simply work like that, I'll wait for the wiki updates if that is the case, as I just copied it from the now-outdated tutorial video)

benlubas commented 5 months ago

@kavfkah it's core.concealer now, not core.norg.concealer

pysan3 commented 5 months ago

@morrismuehl @kavfkah

All nix users, @benlubas merged a way better setup for nix users. Big thanks <3

Check it out! https://github.com/pysan3/Norg-Tutorial/blob/main/MIGRATION-v8.md#nixos

ghost commented 5 months ago

@benlubas ah thanks, it's working now, I see now that it's correct in the wiki, my bad

CRAG666 commented 5 months ago

 Error 16:39:43 msg_show.lua_error Lazy build neorg Error executing vim.schedule lua callback: ...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/rocks.lua:27: [luarocks] Failed to install from rockspec Warning: Failed searching manifest: Failed extracting manifest file: failed extracting /home/think-crag/.cache/luarocks/httpsluarocks.org/manifest-5.1.zip Warning: Failed searching manifest: Failed loading manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/: /home/think-crag/.cache/luarocks/httpsraw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest-5.1: No such file or directory Warning: Failed searching manifest: Failed loading manifest for https://luafr.org/luarocks/: /home/think-crag/.cache/luarocks/https___luafr.org_luarocks/manifest-5.1: No such file or directory Warning: Failed searching manifest: Failed downloading http://luarocks.logiceditor.com/rocks/manifest-5.1 - failed downloading http://luarocks.logiceditor.com/rocks/manifest-5.1

Error: Could not satisfy dependency nvim-nio ~> 1.7: No results matching query were found for Lua 5.1. Missing dependencies for neovim-rocks-user-rockspec 0.0-0: nvim-nio ~> 1.7 (not installed) lua-utils.nvim 1.0.2 (not installed) plenary.nvim 0.1.4 (not installed) nui.nvim 0.3.0 (not installed)

neovim-rocks-user-rockspec 0.0-0 depends on nvim-nio ~> 1.7 (not installed)

stack traceback: [C]: in function 'assert' ...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/rocks.lua:27: in function 'install' ...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/rocks.lua:60: in function 'ensure' /home/think-crag/.local/share/nvim/lazy/neorg/build.lua:14: in function </home/think-crag/.local/share/nvim/lazy/neorg/build.lua:9>

flexagoon commented 5 months ago

@CRAG666 what does :Lazy build luarocks.nvim output?

Also, please format error messages as code blocks, they're very hard to read otherwise

morrismuehl commented 5 months ago

@pysan3 First of all, thank you!

I know it's a bit much to ask. But is there a way to go about this in home manager? I have compiled neovim-nightly with magick installed for image.nvim, and I think the 2 options clash somewhat. Or at least I haven't gotten it to work so far.