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

bug: Unsupported operating system: OpenBSD #1200

Open
ekollof opened this issue Feb 6, 2025 · 1 comment
Open

bug: Unsupported operating system: OpenBSD #1200

ekollof opened this issue Feb 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ekollof
Copy link

ekollof commented Feb 6, 2025

Describe the bug

 system: OpenBSD
stack traceback:
        [C]: in function 'error'
        ...al/share/nvim/lazy/avante.nvim/lua/avante/utils/init.lua:46: in function 'get_os_name'
        ...th/.local/share/nvim/lazy/avante.nvim/lua/avante_lib.lua:4: in function 'get_library_path'
        ...th/.local/share/nvim/lazy/avante.nvim/lua/avante_lib.lua:14: in function 'load'
        ...h/.local/share/nvim/lazy/avante.nvim/lua/avante/init.lua:31: in function <...h/.local/share/nvim/lazy/avante.nvim/lua
/avante/init.lua:31>```




### To reproduce

Install the plugin in OpenBSD neovim

### Expected behavior

Working Avante

### Installation method

Use lazy.nvim:
```lua
	{
		"yetone/avante.nvim",
		event = "VeryLazy",
		lazy = false,
		version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes.
		opts = {
			provider = "copilot",
			auto_suggestions_provider = "copilot",
		},
		-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
		build = "make",
		-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
		dependencies = {
			"stevearc/dressing.nvim",
			"nvim-lua/plenary.nvim",
			"MunifTanjim/nui.nvim",
			--- The below dependencies are optional,
			"echasnovski/mini.pick", -- for file_selector provider mini.pick
			"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
			"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
			"ibhagwan/fzf-lua", -- for file_selector provider fzf
			"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
			"zbirenbaum/copilot.lua", -- for providers='copilot'
			{
				-- support for image pasting
				"HakonHarnes/img-clip.nvim",
				event = "VeryLazy",
				opts = {
					-- recommended settings
					default = {
						embed_image_as_base64 = false,
						prompt_for_file_name = false,
						drag_and_drop = {
							insert_mode = true,
						},
						-- required for Windows users
						use_absolute_path = true,
					},
				},
			},
			{
				-- Make sure to set this up properly if you have lazy=true
				"MeanderingProgrammer/render-markdown.nvim",
				opts = {
					file_types = { "markdown", "Avante" },
				},
				ft = { "markdown", "Avante" },
			},
		},
	},
}

Environment

NVIM v0.10.3
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    -- add any other plugins here
  },
})
@ekollof ekollof added the bug Something isn't working label Feb 6, 2025
@linkdom
Copy link
Contributor

linkdom commented Feb 7, 2025

This is where the Issue lies:

---@return "linux" | "darwin" | "windows"
M.get_os_name = function()
  local os_name = vim.uv.os_uname().sysname
  if os_name == "Linux" then
    return "linux"
  elseif os_name == "Darwin" then
    return "darwin"
  elseif os_name == "Windows_NT" then
    return "windows"
  else
    error("Unsupported operating system: " .. os_name)
  end
end

I think OpenBSD is not supported currently so it's not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants