-
-
Notifications
You must be signed in to change notification settings - Fork 53
[BUG] When attempting to load via Autosession search, it cannot find directory #195
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
Comments
Hey, this is an interesting one. At first glance it looks to me like it's an error with your config regarding |
If I can provide and logs or further info, please do say 👍 |
Having the same with just this setup:
Maybe its a windows thing? |
Does local M = {}
function M.select()
vim.ui.select({ "Australia", "Belarus", "Canada", "Denmark", "Egypt", "Fiji" }, {
prompt = "Select a country",
format_item = function(item)
return "I like to visit " .. item
end,
}, function(country, idx)
if country then
print("You selected " .. country .. " at index " .. idx)
else
print("You cancelled")
end
end)
end
M.select()
return M The idea here is to try and reproduce your issue even without auto-session being involved at all. |
Thanks for trying that out, just wanted to rule something out. I have also just realized that the windows path handling might not be working well. I also have no real way of testing this as I'm not a windows user myself, but I'd be happy to help someone with this if they've got the time to dig in. The hypothesis is that the issue is only around the parsing of the path from the real path to the escaped path and back. |
I wouldn't mind trying - could you point me in the right direction? Any suggestions as to what should be checked where? |
There are a couple of windows specific functions in this file you could start playing with to see what you get auto-session/lua/auto-session-library.lua Line 116 in 04ccdac
|
@rmagatti I think this can be closed now |
Describe the bug
When running
Autosession search
I get to pick between my 2 currently existing session. Picking ether of them, however, errors out with the following:Notably, this does not happen when using session-lens, so I feel like it may have potentially sneaked under the radar.
To Reproduce
Steps to reproduce the behavior:
Autosession search
and pick the new oneExpected behavior
The app restores the session smoothly.
Baseline (please complete the following information):
set sessionoptions?
:sessionoptions=blank,buffers,curdir,folds,help,tabpages,winsize,terminal,localoptions,winpos
uname -a
:MSYS_NT-10.0-22621 PC-Name 3.3.6-341.x86_64 2022-09-05 20:28 UTC x86_64 Msys
(win 11)nvim --version
Additional context
Also, Autosession delete does not delete the session for me ether. Feel like that might be related.
The text was updated successfully, but these errors were encountered: