Skip to content

Neorg fails to load on Asahi linux #1614

Open
@waltmck

Description

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

Metadata

Assignees

No one assigned

    Labels

    bugIssues related to bugs. Please attach a severity, a priority and category with this label.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions