Skip to content

fix(windows): "neovimInitVimPaths" backslashes not escaped #2286

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justinmk
Copy link
Collaborator

Problem:

With this setting:

"vscode-neovim.neovimInitVimPaths.win32": "C:\\Users\\USER\\AppData\\Local\\nvim\\init.lua",
"vscode-neovim.neovimExecutablePaths.win32": "C:\\Program Files\\Neovim\\bin\\nvim.exe"

The -u argument passed to Nvim is not escaped:

[info] MainController: Starting nvim: …\nvim.exe -N --embed --cmd source c:\\Users\\USER\\… -u C:\Users\USER\AppData\Local\nvim\init.lua

Solution:

Replace the \ slashes with /. There is zero reason to use \ slashes on Windows.

fix #2285

Problem:
With this setting:

    "vscode-neovim.neovimInitVimPaths.win32": "C:\\Users\\USER\\AppData\\Local\\nvim\\init.lua",
    "vscode-neovim.neovimExecutablePaths.win32": "C:\\Program Files\\Neovim\\bin\\nvim.exe"

The `-u` argument passed to Nvim is not escaped:

    [info] MainController: Starting nvim: …\nvim.exe -N --embed --cmd source c:\\Users\\USER\\… -u C:\Users\USER\AppData\Local\nvim\init.lua

Solution:
Replace the "\" slashes with "/". There is zero reason to use "\"
slashes on Windows.
@justinmk justinmk marked this pull request as draft October 15, 2024 11:16
@justinmk
Copy link
Collaborator Author

will add tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows: neovimInitVimPaths setting with backslashes (\) not escaped when passed to -u
1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy