-
Notifications
You must be signed in to change notification settings - Fork 31
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
company completion never completes #151
Comments
|
I'm kinda getting the same thing. No completion whatsoever. Using postgres and this is the driver I'm on |
@gnakic Can you execute any SQL queries? Could you try this configuration: (require 'ejc-company)
(defun ejc-after-emacs-init-hook ()
(push 'ejc-company-backend company-backends))
(add-hook 'after-init-hook 'ejc-after-emacs-init-hook) |
@kostafey Of course. That works for me as intended. I'm able to run queries when doing If I do anything to try to trigger company (I'm just writing a simple This is all I get from the
I even added this but to no effect (setq ejc-complete-on-dot t) What's strange though is that when I inspect the
|
Can you successfully execute columns obtaining SQL in your database: SELECT column_name
FROM information_schema.columns
WHERE UPPER(table_name) = 'MY_TABLE'
ORDER BY column_name Could you provide trivial example of your use case, e.g.: SELECT a.| FROM MY_TABLE a |
So if I use that exact query, I get empty results. But If I remove SELECT column_name
FROM information_schema.columns
WHERE table_name = 'MyTable'
ORDER BY column_name; I do have to note that column names of my table are also pascal cased. So what I do usually is start with this to see what columns I have SELECT * FROM "MyTable"; company completion does not automatically wrap it in double quotes so I do it myself (otherwise I get a complaint that SELECT | FROM "MyTable"; but that doesn't do anything, so I do this SELECT tbl."|" FROM "MyTable" tbl; and sometimes I get some autocompletion results, sometimes I don't. It also sometimes autocompletes a bunch of stuff but columns are not to be found in autocomplete results. |
Can confirm after a few days of usage that company works as intended as long as table and column names are not pascal case. |
I installed it via melpa per the instructions and the completions just never seem to happen.
I'm using GNU Emacs 28.0.50 on NixOS 21.05.20210222.c7d0dbe.
The text was updated successfully, but these errors were encountered: