-
Notifications
You must be signed in to change notification settings - Fork 68
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
Comply with coq8.5 #43
Comply with coq8.5 #43
Conversation
31c10a7
to
3bd21cb
Compare
3bd21cb
to
9946591
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't actually tested yet but apart from the few comments I left it looks reasonable (although I probably wouldn't have done things this way, but that's irrelevant).
Can you take care of the comments I left? Then I'll happily test and merge.
Thanks!
.spyderproject | ||
|
||
# Rope project settings | ||
.ropeproject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you meant to commit this file.
At least not with this content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now only ignore the byte-compiled files.
def ignore_sigint(): | ||
signal.signal(signal.SIGINT, signal.SIG_IGN) | ||
|
||
def escape(cmd): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that really useful necessary for a vim plugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trefis i think it is nothing to do with vim. 😅 we can not happily parse xml data using xml.etree.ElementTree
without escaping these special chars.
print "goals =>", gs | ||
return r | ||
|
||
if __name__ == '__main__': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following lines look like testing. I don't think you meant to commit them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trefis yes, exactly, they just some tests. 😅 so how about putting them into tests
and then checking them using travis in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -2,7 +2,7 @@ let s:coq_running=0 | |||
let s:current_dir=expand("<sfile>:p:h") | |||
|
|||
if !exists('coquille_auto_move') | |||
let g:coquille_auto_move="false" | |||
let g:coquille_auto_move="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't change things like this. Or at least propose them in another PR so they can be discussed independently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enought, i'll do that 😅
(Sorry for the delay btw) |
@trefis no worries, i'll take care of your comments first :)
|
6890545
to
e6cdcb6
Compare
@trefis please review again :) |
while True: | ||
try: | ||
data = os.read(fd, 0x4000) | ||
acc += data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This accumulator doesn't seem to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, exactly, I'll remove it, THX!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it possible that there is a longer input from coqtop (or, for example, the full output is not generated in time) ? I am not familiar with its behavior, but upon executing some local code, the execution of the plugin freezes here.
@trefis Bump, please! |
+1 |
I'll check out if it also works well on Coq8.6 which is released recently this weekend. |
Thanks @zjhmale, that would be fantastic. As a heads up - not sure the patch is exactly working with 8.5. I'm working through a learning text right now (Certified Programs Dependent Types) and it's throwing a different error now with a basic example ( After loading a |
@civiclabsconsulting I'll check out that 😄 |
I finally tested this with 8.5 and it "works" (i.e. it seems to work, at least it's much better than not having anything). Some commits (like cleaning the "info" window before doing anything) did not seem so great to me, but I kept them anyway. Thanks a lot for the contribution! |
Btw, I just encountered the same kind of bug as @civiclabsconsulting (i.e. errors not being displayed properly, but a python backtrace being displayed in vim). |
Fixes #31 and #42.
now we can kindly play with Coq8.5 :)
@trefis please review.