Skip to content

test(pick): fix a builtin.help() test after Nightly changes - #2584

Merged
echasnovski merged 1 commit into
nvim-mini:mainfrom
abeldekat:fix_pick_help
Oct 16, 2026
Merged

echasnovski merged 1 commit into
nvim-mini:mainfrom
abeldekat:fix_pick_help

Conversation

@abeldekat

Copy link
Copy Markdown
Member

Details:

On line 6 the highlighting changed for the space after CTRL-K.

Another approach I can think of is to not regenerate the screenshot and ignore_attr when Neovim>=0.13.

Comment thread tests/test_pick.lua Outdated
-- Ignore footer as it contains non-reliable number of help tags
child.expect_screenshot({ ignore_text = { 14 } })
-- Ignore attr on Neovim<0.13 as the tree-sitter-vimdoc grammar changed
child.expect_screenshot({ ignore_text = { 14 }, ignore_attr = child.fn.has('nvim-0.13') == 0 and true or false })

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
child.expect_screenshot({ ignore_text = { 14 }, ignore_attr = child.fn.has('nvim-0.13') == 0 and true or false })
child.expect_screenshot({ ignore_text = { 14 }, ignore_attr = child.fn.has('nvim-0.13') == 0 })

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

12|│ typing CTRL-R and the second char│
13|│ to indicate that you are expected│
14|└ Help ──────────────────────────────── 1|1|11861 ┘
14|└ Help ──────────────────────────────── 1|1|11341 ┘

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... I am curious why we have different number of overall tags. If I run this test on the latest Nightly, I have it updated to 1|1|12221 line. Could you please remove this line change? This text line is ignored in the test comparison, while having it go down is unintuitive.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

I am using a manual build on arch linux, like so: make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/neovim" && make install. Perhaps that's a factor?

@echasnovski echasnovski Oct 16, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, probably. I am using "official"Nightly build appimage from here, and so does CI for Nightly.

Details:
- The tree-sitter-vimdoc grammar changed slightly

- See PR 42367 in neovim/neovim

@echasnovski echasnovski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@echasnovski
echasnovski merged commit ec1d7d8 into nvim-mini:main Oct 16, 2026
12 checks passed
@abeldekat
abeldekat deleted the fix_pick_help branch October 16, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants