Does anyone use vscoq and prettify symbols extension? It keeps breaking on my end arbitrarily with random symbols appearing on screen. The project on github seems to be abandoned.
are you looking at this one: https://github.com/coq-community/vscoq
Last commit was 3 months ago, which by the standards of GitHub at least would not be classified as abandoned.
VScoq version is working fine, it's the prettify-symbols extension in the description that doesn't work. https://github.com/siegebell/vsc-prettify-symbols-mode
VScoq seems to have it's own zulip, I will ask there. Thanks for your response Karl.
yeah that project is likely abandoned. Community members might consider a fork in coq-community, as was done for the original vscoq: https://github.com/coq-community/manifesto/issues/72
See the process here: https://github.com/coq-community/manifesto/blob/master/CONTRIBUTING.md#proposing-a-new-package
Thanks again. I didn't know about this.
we can move this topic to the VsCoq stream (ping @Théo Zimmermann )
Also Coq supports unicode with the Utf8
module so it's not that necessary to use a prettifier which will always prettify wrong things.
Hi,
The description of vscoq reads that it supports prettify-symbols extension hence I am posting this here. The extension keeps breaking on my end arbitrarily with random symbols appearing on screen. The project on github seems to be abandoned. Is there any workaround for it? Or is there a different alternative.
many people strongly prefer having their sources as ASCII. The recommendations for using Coq in Common Criteria evaluations specifically advises against using UTF8
I personally think it reads cleaner when you are looking at say code like this: Screenshot-2021-09-22-at-3.40.38-PM.png
If only it worked well enough and played nice with syntax highlights too.
Fwiw I observe the same behaviour but do not know of a work around. I opened an issue about it some time ago: https://github.com/coq-community/vscoq/issues/229
Karl Palmskog said:
many people strongly prefer having their sources as ASCII. The recommendations for using Coq in Common Criteria evaluations specifically advises against using UTF8
That's really sad. Prettifiers are evil, especially when inconsistently used among developers of the same project. Thanks for the information though.
Mycroft92 said:
I personally think it reads cleaner when you are looking at say code like this: Screenshot-2021-09-22-at-3.40.38-PM.png
If only it worked well enough and played nice with syntax highlights too.
With unicode input you could still write:
From Coq Require Import Utf8.
Theorem foo :
∀ P Q R : Prop,
P ∨ (Q ∧ R) →
(P ∨ Q) ∧ (P ∨ R).
This topic was moved here from #Coq users > VScode prettify symbols by Théo Zimmermann
I agree with @Théo Winterhalter . I use libraries (Iris) that (1) forbid ASCII alternatives for existing Unicode syntax (2) mostly provide Unicode-only syntax. Accordingly, prettifiers are the first thing I disable in editors that enable them by default.
I think you mean Théo Winterhalter
(and I'm aware of the ANSSI guidelines, but I can't change Iris).
whoops thanks, typo fixed
for the record, all core MathComp files are ASCII. Clearly, there is a divide in the community.
sure, I'm not imposing my (or Robbert/Ralf's) preferences on others
was more concerned here about the implication "X is the consensus" from claims of "not X is evil"
@Mycroft92 anyway, that extension _is_ abandoned, so the options are either using Unicode yourself, using prettifiers in Emacs, or getting somebody to volunteer fixing that (not the original author). Or maybe some fork is more up-to-date? https://github.com/siegebell/vsc-prettify-symbols-mode/network/members
my suggestion is to propose to fork the project (vcs-prettify-symbols-mode
) in coq-community. The proposer in no way has to commit to being the maintainer, we will simply mark it as "looking for maintainer": https://github.com/coq-community/manifesto/issues/new?assignees=&labels=move-project&template=1-move-a-project.md&title=Proposal+to+move+project+X+to+coq-community
https://github.com/siegebell/vsc-prettify-symbols-mode/network might help, and https://github.com/silver-dragon/vsc-prettify-symbols-mode and https://github.com/Pancaek/vsc-conceal seem to have more progress
Karl Palmskog said:
was more concerned here about the implication "X is the consensus" from claims of "not X is evil"
Sorry, I should have worded my claim differently. I think prettifiers are hard to make robust and can be painful at times (indentation is not the same depending on whether you use one etc.)
(You just reminded me of prettifiers for layout-sensitive languages like Haskell, Théo).
(Yes they exist, but we're luckier here)
Thanks for the suggestions, I think I will go with the unicode alternative instead. I will however file for the prettifier to be adopted by the community.
Last updated: Jun 04 2023 at 23:30 UTC