Comments (3)
Two things to check:
- Is the value of
comint-prompt-regexp
set? (mine is"^"
) - Is there a buffer called *SQL: Org* after running
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 returnnil
)
from org-sql.
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.
from org-sql.
haven't solved this yet but found several problems:
- starting a sqlite process buffer on windows produces no prompt (it should be "sqlite> "). The buffer appears to work fine when typing directly into it, but fails with the "No prompt found" error from OP when using any function that calls
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. - It is possible to override the expected prompt with a regular expression "^" (instead of "^sqlite> ") by changing the
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).
from org-sql.
Related Issues (18)
- Will this package provide a simple web interface? HOT 4
- Plans? HOT 4
- Updating taking long / config problem? HOT 6
- Documentation error - "org-sqlite-db-path" should be "org-sql-sqlite-path" HOT 1
- Doesn't work on my system - solved with help of sqlite3 ".log" and ".trace" commands HOT 10
- clocking is empty HOT 26
- Hard-coded path to sqlite3 - No such a file or directory, /usr/bin/sqlite3 HOT 4
- Symbol’s function definition is void: org-ml-headline-get-logbook HOT 2
- f-write used, but f not "require"d HOT 1
- Effort not showing up in headlines table HOT 2
- swapped calls of 'org-sql-user-push' and 'org-sql-user-pull'
- `s-matches-p`: Wrong type argument HOT 3
- Error: in prepare, no such table HOT 2
- parse custom link types and add them to the links table HOT 1
- Add abbreviation column to the table links HOT 3
- postgres process not closed
- can't see a file's #+title nor #+category HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-sql.