-
Notifications
You must be signed in to change notification settings - Fork 415
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
Failure of [coqc --config] with Coq in a workspace #11011
Comments
Note that I'd expect at least the expansion of variable that do not depend on the standard library (like version stuff) to always work, regardless of whether the standard library is available in the workspace or not. |
@rlepigre It is a quirk of Coq, at least at the time, that the standard library location was required to output the version. Not sure what the best fix is here. We might be able to trick Coq into giving up it's version by passing a dummy stdlib location. |
Yeah, that's what I was thinking. Another option would be to rely on |
@rlepigre IIRC |
On the version I tested (basically 8.19) it has an effect for |
Thanks again for the report @rlepigre , I am wondering on your test case tho, don't you define a I was under the impression we had fixed this, but indeed, let's look into what is going on. |
I'm not sure what you mean with
|
I meant on the example above, you do: Indeed, I don't think the test should be even accepted, |
Ah, I see, thanks! I somehow missed that issue and MR. |
Easy to miss, as the changelog for I wouldn't be surprised if we have more problems in this area, please don't hesitate to reopen. |
Variable expansion based on the output of
coqc --config
, such as%{coq:version.major}
, is broken when Coq itself is in the workspace. This leads to errors like the following:The reason making
coqc
fail is that it does not know where to find the standard library.This can be reproduced using the following:
CC @ejgallego @Alizter
The text was updated successfully, but these errors were encountered: