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

Error detected wile processing function provider#python#Call #50

Open
adityavkk opened this issue Feb 17, 2017 · 3 comments
Open

Error detected wile processing function provider#python#Call #50

adityavkk opened this issue Feb 17, 2017 · 3 comments

Comments

@adityavkk
Copy link

line18 in coquille.py

AttributeError: 'Option' object has no attribute 'split'

@vuongDang
Copy link

Hey!
Same error but line 242: coquille.py

lst = info_msg.split('\n')
AttributeError: 'Option' object has no attribute 'split'

@rbowden91
Copy link

The issue seems to be that "info_msg" might not just be None, but might be Option(val=None), which is something that coqtop.py constructs. Not sure how all this comes together, but my fix was changing the condition on line 241 of coquille.py to:

if info_msg is not None and (not isinstance(info_msg, CT.Option) or info_msg.val is not None):

@vuongDang
Copy link

Actually it was my bad, I'm using coq 8.6 which is not currently supported by coquille.
After looking into the issue it seems the API of coqtop has been modified quite a bit.
Does anyone know where I can find some documentation about it? I've seen nothing on the offical website and neither in the coq project doc.

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

No branches or pull requests

3 participants