Skip to content
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

Missing conversion functions for types for the extraction plugin? #371

Closed
toku-sa-n opened this issue Nov 21, 2023 · 3 comments · Fixed by #375 or ocaml/opam-repository#25310
Closed

Comments

@toku-sa-n
Copy link
Contributor

toku-sa-n commented Nov 21, 2023

Hi. While I was viewing serlib's document, I noticed that functions for converting between types for the extraction plugin (e.g., lang) and SExp were missing.

Is it okay to send a PR to implement them?

@ejgallego
Copy link
Owner

ejgallego commented Nov 21, 2023

Hi @toku-sa-n !

Absolutely, a PR to fix this problem would be much welcome! I'd recommend you also add a test to the test suite.

Unfortunately we cannot do this automatically yet, see ejgallego/coq-lsp#761 for a discussion

@toku-sa-n
Copy link
Contributor Author

I may be missing something, but it seems that we need to modify the upstream Coq code to implement the functions because there are neither wit_* functions defined in Extraction_plugin nor types of 'a Genarg.genarg_type defined there. The G_extraction module where I think such functions are to be defined is empty.

Is it correct?

@ejgallego
Copy link
Owner

This is because the extraction.mli file was added. Because of that, it is now not possible to access the AST of extraction commands.

cc @SkySkimmer (coq/coq@99eae36)

ejgallego added a commit to ejgallego/coq that referenced this issue Nov 27, 2023
SkySkimmer pushed a commit to SkySkimmer/coq that referenced this issue Dec 7, 2023
Fix downfall of coq#17293 :/

cc: ejgallego/coq-serapi#371
(cherry picked from commit 0821be5)
ejgallego added a commit to ejgallego/opam-repository that referenced this issue Feb 21, 2024
CHANGES:

 - [serlib] Support `btauto` Coq plugin (@ejgallego, ejgallego/coq-serapi#362)
 - [serlib] Support `extraction` Coq plugin (@ejgallego, @toku-sa-n,
            ejgallego/coq-serapi#375, fixes ejgallego/coq-serapi#371)
 - [general] Make licensing clearer (@ejgallego, @palmskog,
             @SnarkBoojum, ejgallego/coq-serapi#361, closes ejgallego/coq-serapi#266)
ejgallego added a commit to ejgallego/opam-repository that referenced this issue Feb 21, 2024
CHANGES:

 - [serlib] Support `btauto` Coq plugin (@ejgallego, ejgallego/coq-serapi#362)
 - [serlib] Support `extraction` Coq plugin (@ejgallego, @toku-sa-n,
            ejgallego/coq-serapi#375, fixes ejgallego/coq-serapi#371)
 - [general] Make licensing clearer (@ejgallego, @palmskog,
             @SnarkBoojum, ejgallego/coq-serapi#361, closes ejgallego/coq-serapi#266)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants