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

Neorg fails to load on Asahi linux #1614

Open
2 tasks done
waltmck opened this issue Dec 10, 2024 · 1 comment
Open
2 tasks done

Neorg fails to load on Asahi linux #1614

waltmck opened this issue Dec 10, 2024 · 1 comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@waltmck
Copy link

waltmck commented Dec 10, 2024

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.10.2

Neorg setup

I am using Nixvim on Asahi linux (Apple M2). here is my lua init script (output by nixvim-print-init).

Actual behavior

When trying to load Neorg on Asahi linux, I get the following error message:

Error detected while processing /nix/store/r5lwccbh9082r5mc16baxwxanwylirls-init.lua:                   
E5113: Error while calling lua chunk: ...pack/myNeovimPackages/start/neorg/lua/neorg/core/log.lua:102: a
ttempt to compare number with nil                                                                       
stack traceback:                                                                                        
        ...pack/myNeovimPackages/start/neorg/lua/neorg/core/log.lua:102: in function 'info'             
        .../myNeovimPackages/start/neorg/lua/neorg/core/modules.lua:228: in function 'load_module'      
        ...dir/pack/myNeovimPackages/start/neorg/lua/neorg/init.lua:100: in function 'org_file_entered' 
        ...dir/pack/myNeovimPackages/start/neorg/lua/neorg/init.lua:45: in function 'setup'             
        /nix/store/r5lwccbh9082r5mc16baxwxanwylirls-init.lua:598: in main chunk

Expected behavior

Neorg successfully loads

Steps to reproduce

Attempt to load neorg on Asahi linux. If you use NixVim, a complete reproducible config is available here.

Potentially conflicting plugins

None that I can think of

Other information

Nix (and NixVim) allow completely reproducible builds. My exact config has been confirmed to work on x86-64, so this bug only reproduces on Asahi linux. It may reproduce on other ARM hardware, with or without 16k pages (I do not have any on hand that I can use to test).

Help

No

Implementation help

No response

@waltmck waltmck added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Dec 10, 2024
@waltmck waltmck changed the title Neovim fails to load on Asahi linux Neorg fails to load on Asahi linux Dec 10, 2024
@github-project-automation github-project-automation bot moved this to added-updated-reopened in sorting neorg issue tracker Dec 10, 2024
@benlubas
Copy link
Contributor

would be helpful if you included some of the contents of the files that the stack trace tells you about

.../myNeovimPackages/start/neorg/lua/neorg/core/modules.lua:228: in function 'load_module' in particular is suspicious b/c that line is not in the load_module function (anymore, presumably it was at some point).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

2 participants