neorg icon indicating copy to clipboard operation
neorg copied to clipboard

Cannot run NeorgStart

Open mehalter opened this issue 3 years ago • 7 comments

Prerequisites

  • [X] I have read contribution guidelines
  • [X] I am using the latest version of the plugin
  • [X] I am using either 0.6 stable or the latest compiled neovim version

Neovim Version

NVIM v0.6.1

Neorg setup

require("neorg").setup {
  load = {
    ["core.defaults"] = {},
    ["core.norg.dirman"] = {
      config = {
        workspaces = {
          home = "~/Documents/notes/home",
          work = "~/Documents/notes/work",
        },
      },
    },
  },
}

Actual behavior

I get the following error and nothing else happens. It doesn't bring me to my Neorg workspace or make the :Neorg command available at all.

E5108: Error executing lua ...art/neorg/lua/neorg/modules/core/autocommands/module.lua:72: Vim(autocmd):E1155: Cannot define autocommands for ALL events                                                                                                                         
stack traceback:                                                                                                                                                                                                                                                                 
        [C]: in function 'cmd'                                                                                                                                                                                                                                                   
        ...art/neorg/lua/neorg/modules/core/autocommands/module.lua:72: in function 'enable_autocommand'                                                                                                                                                                         
        ...start/neorg/lua/neorg/modules/core/highlights/module.lua:491: in function 'load'                                                                                                                                                                                      
        .../nvim/site/pack/packer/start/neorg/lua/neorg/modules.lua:200: in function 'load_module'                                                                                                                                                                               
        .../nvim/site/pack/packer/start/neorg/lua/neorg/modules.lua:118: in function 'load_module'                                                                                                                                                                               
        .../nvim/site/pack/packer/start/neorg/lua/neorg/modules.lua:118: in function 'load_module'                                                                                                                                                                               
        .../site/pack/packer/start/neorg/lua/neorg/modules/base.lua:243: in function 'load'                                                                                                                                                                                      
        .../nvim/site/pack/packer/start/neorg/lua/neorg/modules.lua:200: in function 'load_module'                                                                                                                                                                               
        ...al/share/nvim/site/pack/packer/start/neorg/lua/neorg.lua:87: in function 'org_file_entered'                                                                                                                                                                           
        [string ":lua"]:1: in main chunk                                                                                                                                                                                                                                         
Press ENTER or type command to continue

Expected behavior

I would expect it to bring me to my default Neorg workspace (or previous one, I am not exactly sure since I haven't seen it working yet) and make the :Neorg command available to work within the Neorg environment

Steps to reproduce

  • Open nvim outside of a .norg file
  • Run :NeorgStart

Potentially conflicting plugins

I am currently using AstroVim, but it seems like it is failing when running the autocommands module and is failing to set those up for some reason.

Other information

If I open neovim with a .norg file directly then it seems to work as intended and I don't get any autocommand errors.

Help

Yes, but I don't know how to start. I would need guidance (check question below)

Implementation help

No response

mehalter avatar Feb 09 '22 14:02 mehalter

Also I should note that if I disable the ["core.defaults"] modules and just have core.norg.dirman enabled then running NeorgStart successfully loads my workspace and brings me to my file. It seems to just be something with the core.autocommands module

mehalter avatar Feb 09 '22 14:02 mehalter

subscribe

bketelsen avatar Feb 10 '22 10:02 bketelsen

Thanks for the heads up @mehalter. It's weird cause I can't really seem to reproduce this on my end, it works just as intended.

I'll play around with it and see whether I can figure anything out :)

vhyrro avatar Feb 12 '22 16:02 vhyrro

@vhyrro Thanks. I need to get some time to do more testing and debugging to figure out if it's a plugin I'm loading causing the issue. Do you have any idea what the error message is saying?

mehalter avatar Feb 12 '22 16:02 mehalter

I'm actually a little confused by it - to my knowledge there should be nothing that should be invoking a nonexistent autocommand :thinking:

Is that the only error message you get, or is there more text upon running :messages?

vhyrro avatar Feb 12 '22 16:02 vhyrro

That's the only error I get with :messages. Is there anyway to enable more debugging logging with neorg that might help?

mehalter avatar Feb 12 '22 17:02 mehalter

Hello, what is the state of the issue @mehalter ?

danymat avatar Jul 08 '22 10:07 danymat

Can this issue be closed? It was non-reproducible and the author has not provided more information for over a year.

d-r-a-b avatar Apr 26 '23 07:04 d-r-a-b

@vhyrro close this

max397574 avatar Apr 26 '23 09:04 max397574

:NeorgStart has been removed for a while to allow for more conventional lazy loading techniques, so yeah this issue is not relevant much more. Closing!

vhyrro avatar Apr 27 '23 17:04 vhyrro