kostafey / ejc-sql

Emacs SQL client uses Clojure JDBC.
278 stars 29 forks source link

Error when trying to connect #165

Closed thermopyle closed 1 year ago

thermopyle commented 2 years ago

I get the following error when trying to connect to a Redshift DB;

condition-case: Wrong type argument: stringp, ("ELisp" (lexical-binding (:propertize "/l" help-echo "Using lexical-binding mode") (:propertize "/d" help-echo "Using old dynamic scoping mode
mouse-1: Enable lexical-binding mode" face warning mouse-face mode-line-highlight local-map (keymap (mode-line keymap (mouse-1 . elisp-enable-lexical-binding))))))

This used to work in ejc-sql but since a while back it doesn't. I have the same connection configured in DBeaver which works without any problems.

My config looks like this;

(use-package ejc-sql
  :ensure t
  :hook
  (ejc-sql-minor-mode . company-mode)
  (ejc-sql-connected . (lambda ()
             (ejc-set-fetch-size nil)
             (ejc-set-max-rows nil)
             (ejc-set-column-width-limit nil)))
  :config
  (use-package ejc-company)
  (push 'ejc-company-backend company-backends)
  (setq ejc-complete-on-dot t)
  (ejc-create-connection
   "Redshift"
   :classpath "[/Users/mikael/.m2/repository/postgresql/postgresql/9.3-1102.jdbc41/postgresql-9.3-1102.jdbc41.jar]"
   :password "**************"
   :user "*************"
   :port "5439"
   :host "********************************************"
   :dbname "db"
   :dbtype "postgresql"))

I use Emacs 28.0.50 on MacOS Monterey installed using homebrew.

kostafey commented 1 year ago

Duplicate and fixed as https://github.com/kostafey/ejc-sql/issues/168.