nvim-tree / nvim-tree/nvim-tree.lua

CI Check Nightly Failing

Open Beginner friendly
#3,355 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Lua
Stars
8.6k
Forks
639
Avg merge
1d 14h
Merged PRs (30d)
2

Description

nightly luacheck is failing with:

lua/nvim-tree/actions/tree/collapse.lua:18:38 [Warning] Cannot assign `integer` to parameter `string`.
- `integer` cannot match `string`
- Type `integer` cannot match `string`
- Type `number` cannot match `string` (param-type-mismatch)
          local matches = utils.str_find(buffer_path, path)

Stable is passing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lua/nvim-tree/actions/tree/collapse.lua:18 and inspect the utils.str_find definition and its parameter types. Reproduce the failure with the nightly luacheck workflow linked in the issue, then verify that the type warning is resolved and both nightly and stable checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
ci-cd, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
84/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.