Skip to content

Conversation

@WangNan0
Copy link
Contributor

Python raise an exception when dealing 'Qed.' in coq8.5. This patch fix it.

A debug facility is added to help people check the communication between vim and coqtop. See commit message for usage.

Usage:
  :call coquille#DebugOn()
  :CoqLaunch

Will open a new buffer named "Debug". Message to/from coqtop will
be shown there.

Signed-off-by: Wang Nan <[email protected]>
Message can be reported this way:

 <message>
   <message_level val="info"/>
   <string>mypred_Sx&nbsp;is&nbsp;defined</string>
 </message>

When recving message like this, python raise an exception
in get_answer() because accessing 'c[2]' is invalid in this case.

We should look for the exact node instead.

Signed-off-by: Wang Nan <[email protected]>
When coqtop response an error, try to extract 'msg' field from
response, cause an exception.

Before parsing goals, check if response is Err.

Signed-off-by: Wang Nan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant