Skip to content
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

Upon killing buffer with connection, reopenning buffer raises error "Selecting deleted buffer" #189

Open
cheerio-pixel opened this issue Jan 17, 2024 · 0 comments

Comments

@cheerio-pixel
Copy link

Here is a minimal working example

(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))
;;* Straight config
(setq straight-use-package-by-default t)
(setq straight-host-usernames '((github . "cheerio-pixel")))

(straight-use-package 'use-package)
(eval-when-compile (require 'use-package))
;; ---------------------------------------------------------------------------------------------


(use-package ejc-sql
  :config
  (setq ejc-connections
        '(("lab3"
           (:classname . "com.mysql.jdbc.Driver")
           (:classpath .
                       ["/home/cheerio-pixel/.m2/repository/mysql/mysql-connector-java/5.1.44/mysql-connector-java-5.1.44.jar"])
           (:password . "testtest")
           (:user . "MySQL test")
           (:port . "3306")
           (:host . "localhost")
           (:dbname . "lab3")
           (:dbtype . "mysql"))))
  )

Then open a sql connection on a file and kill it. if you try to reopen that file the error "Selecting deleted buffer" is raised

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant