-
Notifications
You must be signed in to change notification settings - Fork 127
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
scryer-prolog
is not runnable by MSYS2 emacs
on Windows
#2694
Comments
scryer-prolog
is not runnable by MSYS2-emacs
on Windowsscryer-prolog
is not runnable by MSYS2 emacs
on Windows
Ok, I pin-pointed where the execution stops. It is exactly at: // src/read.rs
fn call_readline(&mut self) -> std::io::Result<usize> {
match self.rl.readline(get_prompt()) { // <--------------- So it seems to be a problem in |
Ok, I played a bit with rustyline, and voila: I got ediprolog working for me. I am going to file an issue there hopefully it gets fixed. The underlying reason is:
I will propose either flushing the prompt also on that case or actually checking the |
Thanks @jasagredo it is really good that Scryer has contributors that actively use Windows. Finally all those issues can be identified and fixed. |
Should be fixed once Scryer updates its dependency on rustyline to some point after kkawakam/rustyline#834. |
Thank you a lot for your great help with this! Please consider reopening this issue until it is corrected, so we remember to take care of it. |
Not sure if there will exist a solution for this, but I thought I might just report it as an issue.
My setup consists of an MSYS2 installation on Windows 11. I use the CLANG64 environment usually. Currently in order to interact with
scryer-prolog
I have to use a terminal, and I wanted to useediprolog
to ease coding, howeverediprolog
complains about no prompt being emitted fromscryer-prolog.exe
.So I tried running
scryer-prolog
directly from the emacs shell. It turns out thatscryer-prolog
is not runnable from the emacs shell!There is no output, nor the process exits, just silence. I tried getting the msvc compiled executable I created the other day in a VM with the same result:
Seems to be a problem with the repl, as the
--version
flag actually outputs something in both cases:It even runs full programs (I use
:- initialization(run).
):If I run
scryer-prolog.exe
from a terminal in GDB it shows the prompt:And if I run it in GDB from the emacs shell, it terminates instantly:
^ This is particularly surprising, I would have expected the GDB'ed execution to also deadlock forever, as the call from the shell.
My first immediate thought was that perhaps the
TERM=dumb
of the emacs shell was making scryer faulty, however it seems scryer is still able to run properly in a terminal withTERM=dumb
:Also WSL is able to invoke
.exe
Windows executables, but a WSL emacs also is unable to run scryer-prolog in eshell.The text was updated successfully, but these errors were encountered: