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

Allow vscoqtop.exe in searchForVscoqtopInPath #973

Closed
cas-haaijman opened this issue Dec 28, 2024 · 4 comments
Closed

Allow vscoqtop.exe in searchForVscoqtopInPath #973

cas-haaijman opened this issue Dec 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@cas-haaijman
Copy link
Contributor

cas-haaijman commented Dec 28, 2024

When installing vscoq-language-server on Windows machines through an installer like Coq Platform vscoqtop gets installed as vscoqtop.exe. Currently the function searchForVscoqtopInPath only searches for vscoqtop

if(await isFileInFolder('vscoqtop', pathVars[i])) {
, so the executable will not be found.

Additionally, the next line

return pathVars[i] + '/vscoqtop';
does not use the proper path.delimiter for windows systems.

This could be fixed manually, but maybe it makes sense to use the which package, as both cases are covered by which("vscoqtop"), in trade for an extra import. In my few short experiments, the which package works well with both linux and windows

@rtetley
Copy link
Collaborator

rtetley commented Jan 13, 2025

Do you perhaps have this change in a branch somewhere ? If so would you mind doing a PR ? :-)

@cas-haaijman
Copy link
Contributor Author

Do you want a version with which or without? I don't have a branch right now but can make one tomorrow

@rtetley
Copy link
Collaborator

rtetley commented Jan 13, 2025

Pretty sure using which is fine !

@rtetley
Copy link
Collaborator

rtetley commented Jan 16, 2025

Closed by #978

@rtetley rtetley closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants