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

On Admitted: AttributeError: 'Option' object has no attribute 'split' #51

Open
alexeicolin opened this issue Feb 25, 2017 · 1 comment

Comments

@alexeicolin
Copy link

Minimal example:

Theorem plus_swap : forall n m p : nat, 
  n + (m + p) = m + (n + p). 
Proof. 
  Admitted.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/acolin/.vim/bundle/coquille/autoload/coquille.py", line 113, in coq_to_cursor
    send_until_fail()
  File "/home/acolin/.vim/bundle/coquille/autoload/coquille.py", line 352, in send_until_fail
    refresh()
  File "/home/acolin/.vim/bundle/coquille/autoload/coquille.py", line 181, in refresh
    show_info()
  File "/home/acolin/.vim/bundle/coquille/autoload/coquille.py", line 242, in show_info
    lst = info_msg.split('\n')
AttributeError: 'Option' object has no attribute 'split'

Silly workaround without digging into it:

--- autoload/coquille.py        2017-02-24 19:18:16.172890241 -0500
+++ /tmp/coquille.py    2017-02-24 19:22:42.111095494 -0500
@@ -239,7 +239,7 @@
 
     del buff[:]
     if info_msg is not None:
-        lst = info_msg.split('\n')
+        lst = str(info_msg).split('\n')
         buff.append(map(lambda s: s.encode('utf-8'), lst))
 
 def clear_info():
@stepchowfun
Copy link

stepchowfun commented May 18, 2017

I am having this problem as well. I am using Coq 8.6, neovim 0.1.7, Python 2.7.10.

Larhard added a commit to Larhard/coquille that referenced this issue May 16, 2019
Larhard added a commit to Larhard/coquille that referenced this issue May 16, 2019
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

2 participants