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

"Unable to load module core.completion .. attempt to call field 'get_language_list' (a nil value)" error after updating to latest commit #1002

Closed
2 tasks done
xfzv opened this issue Jul 31, 2023 · 5 comments · Fixed by #1003
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@xfzv
Copy link
Contributor

xfzv commented Jul 31, 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 Build type: Release LuaJIT 2.1.0-beta3

Neorg setup

        {
		"nvim-neorg/neorg",
		ft = "norg",
		dependencies = { "nvim-treesitter/nvim-treesitter" },
		build = ":Neorg sync-parsers",
		config = function()
			require("neorg").setup({
				load = {
					["core.defaults"] = {},
					["core.clipboard"] = {},
					["core.clipboard.code-blocks"] = {},
					["core.completion"] = {
						config = {
							engine = "nvim-cmp",
						},
					},
					["core.concealer"] = {
						config = {
							dim_code_blocks = {
								enabled = true,
								conceal = true,
								content_only = true,
								adaptive = true,
							},
							icon_preset = "diamond",
						},
					},
				},
			})
		end,
	},

Actual behavior

After updating to 5706f1e, I'm always getting the following error when Neorg is loaded:

image

Reverting to e76f0cb with

{
		"nvim-neorg/neorg",
		commit = "e76f0cb6b3ae5e990052343ebb73a5c8d8cac783",
-- ..

fixes the issue on my end.

Expected behavior

No error is printed.

Steps to reproduce

  1. Update to 5706f1e
  2. The error always appear
  3. Revert to e76f0cb
  4. The error is gone

Potentially conflicting plugins

No response

Other information

No response

Help

None

Implementation help

No response

@xfzv xfzv added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Jul 31, 2023
@github-project-automation github-project-automation bot moved this to added-updated-reopened in sorting neorg issue tracker Jul 31, 2023
@roland-5
Copy link
Contributor

roland-5 commented Jul 31, 2023

Yup, I wanted to report this too.

[neorg] (22:13:07)
.../.local/share/nvim/lazy/neorg/lua/neorg/core/modules.lua:438
Unable to load module core.completion - .../lazy/neorg/lua/neorg/modules/core/completion/module.lua:127: attempt to call field 'get_langu
age_list' (a nil value)
Press ENTER or type command to continue
[neorg] (22:13:07)
/home/roland/.local/share/nvim/lazy/neorg/lua/neorg.lua:95
Recovering from error...
Press ENTER or type command to continue

5706f1e Did something bad.

My neorg config:

	-- use 'nvim-neorg/neorg'
	{
		"nvim-neorg/neorg",
		build = ":Neorg sync-parsers", -- This is the important bit!
		config = function()
			require("neorg").setup({
				load = {
					["core.defaults"] = {}, -- Loads default behaviour
					["core.concealer"] = {}, -- Adds pretty icons to your documents
					["core.dirman"] = { -- Manages Neorg workspaces
						config = {
							workspaces = {
								dokumenty = "/home/roland/Dokumenty/neorg",
							},
						},
					},
					["core.completion"] = {
						config = {
							engine = "nvim-cmp",
						},
					},
					["core.concealer"] = {
						config = {
							dim_code_blocks = {
								width = "content",
							},
						},
					},
					["core.ui.calendar"] = {},
				},
			})
			vim.api.nvim_set_hl(0, "@neorg.tags.ranged_verbatim.code_block", { bg = "#504945" })
		end,
	},

NVIM v0.10.0-dev-741+g996dd36c77

@Groctel
Copy link
Contributor

Groctel commented Jul 31, 2023

This breakage is part of the #999 project. The first commit (#1001) is going to be the biggest one and it had chances to break things. @roland-5, please paste your config so that I can reproduce your error and fix it properly.

@roland-5
Copy link
Contributor

@Groctel Ups, my bad. I updated my comment with my neorg configuration now.

@xfzv
Copy link
Contributor Author

xfzv commented Aug 1, 2023

All good after updating to 3db1001 👍

@roland-5
Copy link
Contributor

roland-5 commented Aug 1, 2023

Thank you @Groctel. <3

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

Successfully merging a pull request may close this issue.

3 participants