Giter Club home page Giter Club logo

Comments (1)

aa755 avatar aa755 commented on August 23, 2024

Because there is little documentation of the protocol in the newer versions of Coq 8.4, snooping on Coqide/coqtop interaction seems to be the only option. The following command is a good start:

sudo strace -ff -e trace=read -e read=1,2 -p COQTOP_PID -s 10000 > log.txt

then grep "read(0" log.txt. Here is a snippet:

Process 11196 attached
read(0, "<call val="rewind" steps="1"/>", 65536) = 30
read(0, "<call val="setoptions">PrintingCoercions<option_value val="boolvalue"><bool val="false"/></option_value>PrintingNotations<option_value val="boolvalue"><bool val="true"/></option_value>PrintingExistentialInstances<option_value val="boolvalue"><bool val="false"/></option_value>PrintingMatchingSynth<option_value val="boolvalue"><bool val="true"/></option_value>PrintingImplicit<option_value val="boolvalue"><bool val="false"/></option_value>PrintingAll<option_value val="boolvalue"><bool val="false"/></option_value>PrintingUniverses<option_value val="boolvalue"><bool val="false"/></option_value>", 65536) = 1057
read(0, "<call val="goal"/>", 65536) = 18
read(0, "<call val="setoptions">PrintingCoercions<option_value val="boolvalue"><bool val="false"/></option_value>PrintingNotations<option_value val="boolvalue"><bool val="true"/></option_value>PrintingExistentialInstances<option_value val="boolvalue"><bool val="false"/></option_value>PrintingMatchingSynth<option_value val="boolvalue"><bool val="true"/></option_value>PrintingImplicit<option_value val="boolvalue"><bool val="false"/></option_value>PrintingAll<option_value val="boolvalue"><bool val="false"/></option_value>PrintingUniverses<option_value val="boolvalue"><bool val="false"/></option_value>", 65536) = 1057
read(0, "<call val="evars"/>", 65536) = 19
read(0, "<call val="hints"/>", 65536) = 19
read(0, "<call val="status"/>", 65536) = 20
read(0, "<call val="interp" id="0" verbose="">Require Import String.", 65536) = 66
read(0, "<call val="setoptions">PrintingCoercions<option_value val="boolvalue"><bool val="false"/></option_value>PrintingNotations<option_value val="boolvalue"><bool val="true"/></option_value>PrintingExistentialInstances<option_value val="boolvalue"><bool val="false"/></option_value>PrintingMatchingSynth<option_value val="boolvalue"><bool val="true"/></option_value>PrintingImplicit<option_value val="boolvalue"><bool val="false"/></option_value>PrintingAll<option_value val="boolvalue"><bool val="false"/></option_value>PrintingUniverses<option_value val="boolvalue"><bool val="false"/></option_value>", 65536) = 1057
read(0, "<call val="goal"/>", 65536) = 18
read(0, "<call val="setoptions">PrintingCoercions<option_value val="boolvalue"><bool val="false"/></option_value>PrintingNotations<option_value val="boolvalue"><bool val="true"/></option_value>PrintingExistentialInstances<option_value val="boolvalue"><bool val="false"/></option_value>PrintingMatchingSynth<option_value val="boolvalue"><bool val="true"/></option_value>PrintingImplicit<option_value val="boolvalue"><bool val="false"/></option_value>PrintingAll<option_value val="boolvalue"><bool val="false"/></option_value>PrintingUniverses<option_value val="boolvalue"><bool val="false"/></option_value>", 65536) = 1057
read(0, "<call val="evars"/>", 65536) = 19
read(0, "<call val="hints"/>", 65536) = 19
read(0, "<call val="status"/>", 65536) = 20
read(0, Process 11196 detached

Similarly, change read to write in the strace command to get the responses of coqtop to coqide.

from nbcoq.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.