Skip to content
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(codelldb): use vim.fn.exepath for command (#51) #52

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

aosterhage
Copy link
Contributor

Mason.nvim utilizes symlinks to organize package files. On Windows symlink support is complicated and so mason chooses to use .cmd script files to simplify things. Setting "command" to "codelldb" will only look for files with the name "codelldb", i.e. it will not find "codelldb.cmd".

This commit changes "command" to use vim.fn.exepath() which seems to find any executable file with an equivalent stem. This means it will find both files "codelldb" and "codelldb.cmd".

Mason.nvim utilizes symlinks to organize package files. On Windows
symlink support is complicated and so mason chooses to use .cmd script
files to simplify things. Setting "command" to "codelldb" will only
look for files with the name "codelldb", i.e. it will not find
"codelldb.cmd".

This commit changes "command" to use vim.fn.exepath() which seems to
find any executable file with an equivalent stem. This means it will
find both files "codelldb" and "codelldb.cmd".
@aosterhage aosterhage changed the title bugfix(codelldb): use vim.fn.exepath for command (#51) fix(codelldb): use vim.fn.exepath for command (#51) Mar 28, 2023
@jay-babu jay-babu merged commit f464b1c into jay-babu:main Mar 28, 2023
This was referenced Apr 21, 2023
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.

2 participants