-
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
Crash on Coq 8.5 #31
Comments
Bump |
👍 I haven't switched to Coq 8.5 yet(it works fine with 8.4pl5), but I'll need this when I switch. |
Yes, this is a known problem. Sorry. |
I'm not familiar with coquille code or the coqtop protocol, so before I think about attempting to fix this to work with 8.5 -- any idea how long it might take? |
What does coquille need from coqtop to work? I have a bit of experience On Sun, Apr 24, 2016, 17:54 Anish Athalye [email protected] wrote:
|
Okay, so the main functionality is in https://github.com/the-lambda-church/coquille/blob/pathogen-bundle/autoload/coquille.py, so we don't need to write any vimscript, which is nice. The first thing that needs to be fixed is how Coq is launched: diff --git i/autoload/coquille.py w/autoload/coquille.py
index 1de3a9a..9b4baca 100644
--- i/autoload/coquille.py
+++ w/autoload/coquille.py
@@ -73,14 +73,14 @@ def restart_coq(*args):
try:
if os.name == 'nt':
coqtop = subprocess.Popen(
- ["coqtop", "-ideslave"] + list(args),
+ ["coqtop", "-main-channel", "stdfds", "-ideslave"] + list(args),
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,
stderr = subprocess.STDOUT
)
else:
coqtop = subprocess.Popen(
- ["coqtop", "-ideslave"] + list(args),
+ ["coqtop", "-main-channel", "stdfds", "-ideslave"] + list(args),
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,
preexec_fn = ignore_sigint (via http://coq-club.inria.narkive.com/UC4eD9Lg/coqtop-ideslave-on-mac-os-x) After that, the send_until_fail() function will need to be updated. Is there any document anywhere that explains how the protocol has changed? Looks like |
A quick update in case anyone is curious: Looking at the current interface, it looks like some of the things just changed slightly. For example, However, it looks like the
So it seems like this would be some effort to fix. |
@anishathalye you might want to check neovim-coq scripts (python) - https://github.com/epdtry/neovim-coq . That seems to be updated for coq8.5. |
@elfi thx for citing this link and this neovim package seems unfinished but it do provide a reusable coqtop abstraction layer. @anishathalye you're right, the |
The plugin doesnt work anymore in coq 8.5, is there intention to work on this?
The text was updated successfully, but these errors were encountered: