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

Failed to run config for neorg: `config.lua 56 [neorg]: Unable to determine the currently active operating system! #1273

Closed
2 tasks done
anoduck opened this issue Jan 11, 2024 · 1 comment · Fixed by #1281
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@anoduck
Copy link

anoduck commented Jan 11, 2024

Prerequisites

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

Neovim Version

NVIM v0.9.4 Build type: Release LuaJIT 2.1.1692716794 system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/share/nvim" Run :checkhealth for more info

Neorg setup

{
		"nvim-neorg/neorg",
		build = ":Neorg sync-parsers",
		dependencies = {
			{ "nvim-neorg/neorg-telescope" },
			{ "nvim-lua/plenary.nvim" },
		},
		opts = {
			load = {
				["core.defaults"] = {},  -- Loads default behaviour
				["core.concealer"] = {}, -- Adds pretty icons to your documents
				["core.dirman"] = {      -- Manages Neorg workspaces
					config = {
						workspaces = {
							notes = "~/notes",
							code = "~/norg/code/",
              writing = "~/Documents/Writings/neorg",
              farm = "~/norg/farm/",
              home = "~/norg/home/",
              --[[ gtd = "~/norg/gtd/", ]]
              shooting = "~/norg/shooting/",
              neovim = "~/norg/neovim/",
              legal = "~/norg/legal/",
              journal = "~/norg/journal/",
              dailies = "~/norg/dailies/",
						},
						autochdir = true,
					},
				},
			},
		},
	},

Actual behavior

Error occurs on load of neovim, and Neorg fails to load.

neorg_setup

Expected behavior

I thought BSD compatibility would precede compatibility of closed source operating systems.

Steps to reproduce

Run neorg on any BSD system.

Potentially conflicting plugins

No response

Other information

Just add both FreeBSD and OpenBSD info to the block of code on line 56 in config.lua, then the problem is solved.

Help

No

Implementation help

I would since the fix would be rather simple, but I am so strapped for time these days. Production critical work as well.

@anoduck anoduck added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Jan 11, 2024
@github-project-automation github-project-automation bot moved this to added-updated-reopened in sorting neorg issue tracker Jan 11, 2024
@github-project-automation github-project-automation bot moved this from added-updated-reopened to done in sorting neorg issue tracker Jan 28, 2024
@anoduck
Copy link
Author

anoduck commented Jan 31, 2024

Thanks everyone.

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.

1 participant