Closed
Description
Describe the bug
I've forked the repo to make a contribution.
I've made no changes so far.
When I run the unit tests, it fails on line 48 in tests/plenary/init_spec.lua
.
org.files:add_to_paths_sync(fname)
assert.is.Not.Nil(org.files.files[fname])
It's because this line changes the filepath before adding it to the table.
-- /var/folders/d3/24_x70js67s5bb9g6bdy8cg00000gn/T/nvim.steven/N5iaBo/0.org
filename = vim.fn.resolve(vim.fn.fnamemodify(filename, ':p'))
-- /private/var/folders/d3/24_x70js67s5bb9g6bdy8cg00000gn/T/nvim.steven/N5iaBo/0.org
So, trying to find the file in the table using the original filepath does not work.
Any suggestions?
Steps to reproduce
- git clone
- change nothing
- run
make test
Expected behavior
All tests pass.
Emacs functionality
No response
Minimal init.lua
-- Enter your minimal_init.lua here
Screenshots and recordings
No response
OS / Distro
Mac OS X 14.6
Neovim version/commit
v0.10.1
Additional context
No response