Open llcc opened 5 years ago
Two things to check:
comint-prompt-regexp
set? (mine is "^"
)org-sql-user-reset
? If not, can you please non-interactively run (org-sql-cmd-open-connection)
and send any errors that appear in *Messages*? (this function should just return nil
)Hi @ndwarshuis
comint-prompt-regexp
returns "^"
as yours.*SQL: Org*
buffer exists as an empty buffer. Eval (org-sql-cmd-open-connection)
produces
Login...done
comint-redirect-send-command-to-process: No prompt found or ‘comint-prompt-regexp’ not set properly
in message buffer.
haven't solved this yet but found several problems:
comint-redirect-send-command-to-process' (which includes the
sqlite-redirect-onefunction called from
org-sql-cmdin this package). The error happens because
comint-redirect-send-command-to-process` looks for the "sqlite> " prompt but cannot find it.sql-product-alist
variable. Sending commands seems to work, but they hang the entire Emacs process unless they produce output it seems. I haven't figured out why yet.For now, the only workaround is to run this on Linux, unfortunately. Since the root cause is actually in comint (which is part of Emacs itself) I will file a bug upstream. Will keep this open though in case they suggest a hacky workaround (or I find one).
Thanks for your great package.
I freshly installed it and called
org-sql-user-reset
. It gave me this error message.No prompt found or ‘comint-prompt-regexp’ not set properly
.System: Windows 10, Emacs 26.1