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

Add debug buffer, fix a bug #70

Open
wants to merge 3 commits into
base: pathogen-bundle
Choose a base branch
from

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 <wangnan0@huawei.com>
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 <wangnan0@huawei.com>
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 <wangnan0@huawei.com>
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