-
Notifications
You must be signed in to change notification settings - Fork 47
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
cargo creusot why3 ide
does not launch after a successful cargo creusot
#943
Comments
Yea, there is a lot that needs improving here. Off the top of my head some things I think we should do:
|
Currently, calling
If the goal is to launch
@xldenis, Is this approach right for you? Currently, when
Cargo can compile a script and execute it just before building the package. This script (build.rs) can communicate with cargo by writing commands for cargo to its standard output. This allows cargo, for example, to determine whether it should rerun the script. However, this mechanism is executed before compilation. Here we would like to run it after compilation. I don't think Cargo has a script for the post-build stage |
Hmm I think Do you think that would be possible? |
Reading over the implementation of |
It's too early to say, but I can start in this direction.
Ok, I'll see what I can do about that. |
I just finished a first solution to this issue here.
|
We added some changes to. We have a problem if cargo-creusot set an mlcfg_filename with relative span_mode. In this situation, the relative path to the rust source file is misinterpreted by cargo-rustc, and why3 can't work fine. creusot-rustc build the We added a change in cargo-creusot to call creusot-rustc with absolute span_mode for now. |
Do we still want that |
Does that mean that creusot should no longer be aware of the compilation mode? This is a bit weird, given that the compilation mode can semantically change the behavior of the compiler. So, what do we prove? The program in debug or release mode? |
Triage after the creusot meeting this morning:
|
If I run
cargo creusot
and it terminates successfully, then runningcargo creusot why3 ide
immediately terminates "successfully" without launching why3ide.This had me scrambling for a while trying to understand what was wrong with my installation of why3ide.
I guess this is caused by caching of build results performed by cargo, but I don't know where to start looking to fix the issue.
The text was updated successfully, but these errors were encountered: