vscoq icon indicating copy to clipboard operation
vscoq copied to clipboard

Formatting Proof view

Open oddcoder opened this issue 11 months ago • 4 comments

Legacy vscoq allows proofs to be formatted nicely, But this is no the case for the current vscoq as shown below:

image

This is makes it extremely hard to follow computer science related proofs as the induction principles generated are very large and wordy. I often find myself having to copy paste it to a new tab and reformatting it by hand just to understand what I am trying to do.

oddcoder avatar Mar 06 '24 08:03 oddcoder

Hi and thanks for reporting ! Coud you give me an example to work with ? As far as I remember we had fixed the formatting issues when we switched to using ppstrings.

rtetley avatar Mar 12 '24 13:03 rtetley

https://gitlab.mpi-sws.org/iris/examples should work. Before, both the coq context and the proof goals were formatted nicely with good indentations. However, now there are no indentations.

Lee-Janggun avatar Mar 19 '24 09:03 Lee-Janggun

Hi and thanks for reporting ! Coud you give me an example to work with ? As far as I remember we had fixed the formatting issues when we switched to using ppstrings.

I can reproduce the same bug without Iris, it is sufficient to have a large goal. I believe this is a regression, it seems formatting (like applying the box language) is not performed anymore.

gares avatar Mar 20 '24 09:03 gares

Bug: Screenshot from 2024-03-22 10-33-51 Expected: Screenshot from 2024-03-22 10-34-23 Documentation of the box module Coq uses behind the scenes: https://v2.ocaml.org/api/Format.html

gares avatar Mar 22 '24 09:03 gares