-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix(windows): invalid directory name due to leading slash #73
Conversation
hi! before we merge an ad-hoc fix like this, i'd be really interested in how that leading could you please run ra-multiplex (with or without this patch, that doesn't matter) with |
Hey, the options looks correct.
But the When printing Line 44 in 586f8c9
we can observe the following in the workspaceFolders :
"workspaceFolders": Array [
Object {
"name": String("c:\\Users\\Philipp\\source\\repos\\<MY_REPO>"),
"uri": String("file:///c:/Users/Philipp/source/repos/<MY_REPO>")
}
]} same format of the URI in the debug log for file notifications:
Directly logging the lsp message here as a string also shows that the uri is indeed returned with ra-multiplex/src/lsp/transport.rs Line 133 in 586f8c9
It seems that the I think there is no way around the additional check when dealing with windows native paths :/ |
Aha, playing with some inputs it appears
So this approach really seems to be the best way to handle this. I hate it :D |
97f92a3
to
474705a
Compare
Thanks! |
Not a fan of the solution as well, but happy to help :) |
After updating ra-mulitplex on my windows machine it stopped working.
Removing the
/
in front of the drive letter (e.g., converting/c:/
toc:/
) fixed the issue for me.Note: I have not performed testing beyond confirming that it now works for my environment.