neovim icon indicating copy to clipboard operation
neovim copied to clipboard

NetBSD: man.lua fails to find manpage

Open mdsn opened this issue 2 years ago • 3 comments

Problem

In NetBSD, pressing K with the cursor on top of a call to open (2) gives the following error:

man.lua: "Could not determine man directories from: 'man -w', 'manpath' or $MANPATH"

The FIND_ARG in runtime/lua/man.lua is -w, so I tried running the command manually to check the output:

$ man -w open
/usr/share/man/man2/open.2

Additionally, inputing a section before pressing K, for example 2K (which would bring the page for open(2)) gives the error

E481: No range allowed

Both commands work as expected in vim 9.0.

Steps to reproduce

Example code:

open()

Place the cursor on top of open and execute the K command in normal mode.

Expected behavior

The manual page for the open(2) system call is opened.

Neovim version (nvim -v)

NVIM v0.9.0

Vim (not Nvim) behaves the same?

No. VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 6 2023 02:53:08)

Operating system/version

NetBSD 10.99.10 (GENERIC64)

Terminal name/version

wezterm 20230712-072601-f4abf8fd

$TERM environment variable

tmux-256color

Installation

Installed with pkg_add (system package manager)

mdsn avatar Nov 06 '23 22:11 mdsn

E481: No range allowed

fixed in https://github.com/neovim/neovim/pull/25922

justinmk avatar Nov 14 '23 11:11 justinmk

Is this still an issue with latest master (Nvim 0.12)?

justinmk avatar Nov 25 '25 19:11 justinmk

I set up a bare NetBSD 10.1 and built master (NVIM v0.12.0-dev-1690+g0a0c349b6f). Same steps, same output:

$ man -w open /usr/share/man/man2/open.2

Pressing K on nvim: Image

Sorry for the screenshot; I haven't set up sshd.

mdsn avatar Nov 26 '25 03:11 mdsn