Open LasseBlaauwbroek opened 1 year ago
Nope, the document manager in vscoqtop is, morally, the STM 2.0, so we won't link the stm.
Can you tell me what you actually use of the old STM?
@gares what should we do here ?
IIRC tactician uses the stm because they redeclare the tactic syntax classified as sideeffect and then they want to detect when running those commands whether it's the "real" run or if it's being replayed at Qed (a STM behaviour which I'm not sure if non-stm ides do). They do this by looking at the "get_ast" in stm.mli (if it's a Qed then the code is running from being replayed).
Yes, that is mostly accurate. Note that Tactician works fine on coq-lsp, even though it doesn't use the STM (but still links to it). Because coq-lsp doesn't have the complex 'replaying at QED' behavior, Tactician's code paths that use the STM are never actually exercised. I'd hope that the same is true for Vscoq.
If so, then just linking to the STM would be enough. When the STM is removed upstream, Tactician can remove the code-paths as well.
The Tactician plugin depends on the
coq-core.stm
library. However, it seems that this library is not linked into thevscoqtop
executable. As such, Tactician is not functional in VsCode 2.Any chance that the STM can be put in?