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

Coq bin detection #439

Merged
merged 7 commits into from
May 30, 2023
Merged

Coq bin detection #439

merged 7 commits into from
May 30, 2023

Conversation

rtetley
Copy link
Collaborator

@rtetley rtetley commented Mar 9, 2023

No description provided.

@gares gares linked an issue Mar 23, 2023 that may be closed by this pull request
@rtetley rtetley marked this pull request as ready for review May 23, 2023 08:30
@rtetley
Copy link
Collaborator Author

rtetley commented May 23, 2023

@maximedenes @gares is this working as intended, as I recall we were waiting for maxime to rebase the submodule but it should be all right now ? if so let's merge !

exec(cmd, {cwd: vscoqtopPath}, (error, stdout, stderr) => {
if(error) {
VsCoqToolchainManager._channel.appendLine(error);
window.showErrorMessage(stderr);
Copy link
Collaborator

@gares gares May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should wrap the error saying something like:

$PATH_TO_VSCOQTOP cannot run properly since the installation of the standard library seems broken: $ERR. If this is not the Coq installation you want to use, set the right path in the settings panel.

Copy link
Collaborator Author

@rtetley rtetley May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I was wondering, if for whatever reason the user passes -coqlib and the dir does not work, the server will crash without real warning (-where does not detect that, it ignores the -coqlib arg). Is there a way to check that and notify the user that the path he gave is incorrect ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting from 8.18 coq* -where will honor -coqlib

return "";
}

private checkIfCoqFound(vscoqtopPath: string) {
Copy link
Collaborator

@gares gares May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About the comment request by @maximedenes:

Check if vscoqtop can load the prelude at its expected installation site, or wherever the user specified by passing -coqlib. (since 8.18 -where does not only print where the prelude is expected to be, but also checks it exists).

@rtetley rtetley merged commit 384340d into main May 30, 2023
@rtetley rtetley deleted the coq-bin-detection branch August 28, 2023 14:14
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.

Detection of coq's binary & lib paths
2 participants