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

Comply with coq8.5 #43

Closed

Conversation

swr1bm86
Copy link
Contributor

@swr1bm86 swr1bm86 commented Sep 26, 2016

Fixes #31 and #42.

screenshot

screenshot

now we can kindly play with Coq8.5 :)

@trefis please review.

@swr1bm86 swr1bm86 force-pushed the comply-with-coq8.5 branch 2 times, most recently from 31c10a7 to 3bd21cb Compare October 2, 2016 05:17
@swr1bm86 swr1bm86 force-pushed the comply-with-coq8.5 branch from 3bd21cb to 9946591 Compare October 2, 2016 16:51
Copy link
Member

@trefis trefis left a 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
Copy link
Member

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.

Copy link
Contributor Author

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):
Copy link
Member

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?

Copy link
Contributor Author

@swr1bm86 swr1bm86 Oct 10, 2016

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.

image

print "goals =>", gs
return r

if __name__ == '__main__':
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trefis i just moved this part to a test file and it works fine on my fork. don't forget to check this project out on travis if you think this approach is acceptable. 😃

@@ -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"
Copy link
Member

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.

Copy link
Contributor Author

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 😅

@trefis
Copy link
Member

trefis commented Oct 10, 2016

(Sorry for the delay btw)

@swr1bm86
Copy link
Contributor Author

@trefis no worries, i'll take care of your comments first :)

(Sorry for the delay btw)

@swr1bm86
Copy link
Contributor Author

@trefis please review again :)

while True:
try:
data = os.read(fd, 0x4000)
acc += data

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.

Copy link
Contributor Author

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!

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.

@ghost
Copy link

ghost commented Dec 29, 2016

@trefis Bump, please!

@pedrotst
Copy link

+1

@swr1bm86
Copy link
Contributor Author

swr1bm86 commented Dec 30, 2016

I'll check out if it also works well on Coq8.6 which is released recently this weekend.

@ghost
Copy link

ghost commented Dec 30, 2016

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 (StackMachine.v). Could be on my end, but not sure.

After loading a *.v file and running CoqLaunch then CoqNext.

1__tmux__tmux_

1__tmux__tmux_ 2

@swr1bm86
Copy link
Contributor Author

@civiclabsconsulting I'll check out that 😄

@trefis
Copy link
Member

trefis commented Jan 18, 2017

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).
I squashed a few commits and removed the commit changing the behavior of automoving the cursor (as it is unrelated, and I don't like it) but otherwise merged as is.

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!

@trefis trefis closed this Jan 18, 2017
@trefis
Copy link
Member

trefis commented Jan 18, 2017

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).

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.

4 participants