-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
fs.upwards-file-search
not always returning absolute paths
#587
Comments
Thanks for catching this, I've updated the chain of functions based on I really need to get the test suite running under Windows like what is currently progressing in nfnl, but there's some Neovim Windows bugs around file trust stuff that needs to be fixed first. I think I won't port this system to Windows but instead include that as part of the nfnl port. I'm wondering if I should normalize here, maybe just expanding to absolute paths is enough and the normalize step will be what breaks Windows support. I don't have a way to test this right now though, I have no idea what steps it would take to test this out on Windows. |
Oh and the tests are failing in CI but not locally, drat! |
Removed the normalize call, I think that's good in nfnl land but might break assumptions in Conjure around how we treat paths in the system. |
Thanks! Much appreciated! |
In the docstring for
fs.upwards-file-search
, it says:conjure/fnl/conjure/fs.fnl
Lines 44 to 48 in a819777
I don’t think this is always correct. In my code, if the file is in the
from-dir
directory, what will be returned is the bare filename rather than the absolute path. I think this is because that’s whatnvim.fn.findfile
returns.The text was updated successfully, but these errors were encountered: