-
Notifications
You must be signed in to change notification settings - Fork 68
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
Coq bin detection #439
Conversation
@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 ! |
client/src/utilities/toolchain.ts
Outdated
exec(cmd, {cwd: vscoqtopPath}, (error, stdout, stderr) => { | ||
if(error) { | ||
VsCoqToolchainManager._channel.appendLine(error); | ||
window.showErrorMessage(stderr); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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).
b60fa34
to
0c95cdc
Compare
No description provided.