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

Calendar plugin not working because of Tempus error #1035

Closed
2 tasks done
SteveWolligandt opened this issue Aug 28, 2023 · 2 comments
Closed
2 tasks done

Calendar plugin not working because of Tempus error #1035

SteveWolligandt opened this issue Aug 28, 2023 · 2 comments
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@SteveWolligandt
Copy link

SteveWolligandt commented Aug 28, 2023

Prerequisites

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

Neovim Version

NVIM v0.9.1

Neorg setup

return {
  "nvim-neorg/neorg",
  opts = {
    load = {
      ['core.defaults'] = {},
      ['core.neorgcmd'] = {},
      ['core.summary'] = {},
      ['core.journal'] = {},
      ['core.autocommands'] = {},
      ['core.export'] = {config={}},
      ['core.export.markdown'] = {config={}},
      ['core.integrations.treesitter'] = {config={}},
      ['core.ui'] = {},
      ['core.ui.calendar'] = {},
      ['core.dirman'] = {
        config = {
          workspaces = {
            notes = '~/notes',
          },
          default_workspace='notes'
        }
      },
      ['core.qol.todo_items'] = {
        config = {
          create_todo_items = true,
          create_todo_parents = true,
        },
      },
      -- ['core.esupports.hop'] = {
      --   config = {}
      -- },
      ['core.concealer'] = {
        config={
          icons={
            code_block = {
              conceal=true,
            },
          },
        }
      },
      -- ['core.keybinds'] = {
      --   config = {}
      -- },
      -- ['core.presenter'] = {
      --   config = { zen_mode = 'zen-mode' }
      -- }
    }
  },
  dependencies = {
    'nvim-lua/plenary.nvim',
    'folke/zen-mode.nvim',
    'lukas-reineke/headlines.nvim',
  },
  build = ":Neorg sync-parsers",
  keys = {
    { '<leader>ni', "<cmd>Neorg index<cr>",   desc = "Open Index" },
    { '<leader>nj', "<cmd>Neorg journal<cr>", desc = "Journal" },
    { '<leader>nt', "<cmd>Neorg toc<cr>",     desc = "TOC" },
  },
}

Actual behavior

Getting these errors when opening a .norg file for nvim 0.9

 Error 14:48:27 notify.error [neorg] (14:48:27)
...ta/Local/nvim-data/lazy/neorg/lua/neorg/core/modules.lua:438
Unable to load module core.tempus - ...data/lazy/neorg/lua/neorg/modules/core/tempus/module.lua:18: attempt to index field 're' (a nil value)
 Error 14:48:27 notify.error [neorg] (14:48:27)
...ta/Local/nvim-data/lazy/neorg/lua/neorg/core/modules.lua:330
Unable to load module core.ui.calendar.views.monthly, required dependency core.tempus did not load successfully
 Error 14:48:27 notify.error [neorg] (14:48:27)
...ta/Local/nvim-data/lazy/neorg/lua/neorg/core/modules.lua:330
Unable to load module core.ui.calendar, required dependency core.ui.calendar.views.monthly did not load successfully

Expected behavior

No errors in Tempus

Steps to reproduce

Just add ['core.ui.calendar'] = {}, to the load field.

Potentially conflicting plugins

No response

Other information

No response

Help

None

Implementation help

No response

@SteveWolligandt SteveWolligandt added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Aug 28, 2023
@SteveWolligandt SteveWolligandt changed the title Calendar plugins not working because of Tempus error Calendar plugin not working because of Tempus error Aug 28, 2023
@salkin-mada
Copy link

Switching to 0.10 resolves the issue.

❯ nvim --version                  
NVIM v0.10.0-dev-978+g7c4d317a66
Build type: RelWithDebInfo
LuaJIT 2.1.1692616192

@vhyrro
Copy link
Member

vhyrro commented Sep 9, 2023

Hey, as @salkin-mada said this is because you're not on 0.10+. I just pushed a change which should give you a much more informative error message whenever you try loading tempus without the appropriate nightly build! :)

@vhyrro vhyrro closed this as completed Sep 9, 2023
benlubas pushed a commit to benlubas/neorg that referenced this issue Jan 11, 2024
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

3 participants