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

Fixing issues caused by breaking changes in closql #246

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

phelrine
Copy link

This pull request resolves an issue caused by breaking changes in closql (#245). The fix was implemented using a commit (magit/forge@af9358d) as a reference.

Furthermore, there was another issue causing test failures due to changes in the return value of -contains-p (magnars/dash.el@112aa7c#diff-51920e95310ebfbc1ae31709f3b95f89afffbf4f1a6e38e8b2b406e2fb6197eaR28-R29). This issue has also been resolved in this pull request.

@abougouffa
Copy link

Thank you for the fix @phelrine. I'm using your fix/closql-update branch util it gets merged, and it's working fine.

@cclark-splash
Copy link

I too have been using this branch.

@aamikkelsenWH
Copy link

Same here 👍

@verdammelt
Copy link

Thank you to @phelrine for this fix!

Any idea if this will be merged in anytime?

@leungbk
Copy link
Contributor

leungbk commented Nov 14, 2023

@wandersoncferreira this patch resolves a breaking issue introduced in an upstream dependency; would you mind taking a look?

@szabolcs-szilagyi
Copy link

Thank you for the fix @phelrine!

Also for others who encounter this issue with spacemacs:

  1. clone phelsine's repo and checkout the correct branch (fix/closql-update)
  2. add the following config to your setup:
      (use-package code-review
        :load-path "~/Projects/Personal/code-review"
        :after magit forge emojify
        :demand t
        :config
        (setq code-review-auth-login-marker 'forge)
        (add-hook 'code-review-mode-hook #'emojify-mode)
        (define-key forge-topic-mode-map (kbd "C-c r") 'code-review-forge-pr-at-point)
        (define-key code-review-feedback-section-map (kbd "k") 'code-review-section-delete-comment)
        (define-key code-review-local-comment-section-map (kbd "k") 'code-review-section-delete-comment)
        (define-key code-review-reply-comment-section-map (kbd "k") 'code-review-section-delete-comment)
        (define-key code-review-mode-map (kbd "C-c C-n") 'code-review-comment-jump-next)
        (define-key code-review-mode-map (kbd "C-c C-p") 'code-review-comment-jump-previous))
  3. reload the config (SPC f e R)

@ParetoOptimalDev
Copy link

The current main branch is broken, but this pull request works great!

@szabolcs-szilagyi
Copy link

szabolcs-szilagyi commented Feb 1, 2024

Not relevant anymore

following a package update I'm getting:

Debugger entered--Lisp error: (wrong-number-of-arguments (1 . 3) 4)
  #f(compiled-function (class &optional livep connection-class) #<bytecode 0x1af10f7b232b0f20>)(code-review-db-database code-review-db-connection "/home/user/.emacs.d/code-review-db-file.sqlite" t)
  apply(#f(compiled-function (class &optional livep connection-class) #<bytecode 0x1af10f7b232b0f20>) code-review-db-database (code-review-db-connection "/home/user/.emacs.d/code-review-db-file.sqlite" t))
  closql-db(code-review-db-database code-review-db-connection "/home/user/.emacs.d/code-review-db-file.sqlite" t)
  code-review-db()
  code-review-db--pullreq-create(#<code-review-github-repo code-review-github-repo-15723cee3090>)

I don't get how to read lisp stack-trace, so kind of stubbed with this one.

UPDATE:
It dies on this call:

    (closql-db 'code-review-db-database 'code-review-db-connection
               code-review-db-database-file t)

looking at the method in closql package it changed again maybe? magit forge initializes the connection way different from this form.

UPDATE no.2:
my bad: my config loaded the package from the wrong place... 🤦

@froh
Copy link

froh commented May 27, 2024

Hi, the melpa version (20221206.113) doesn't have this fix and breaks with the current melpa magit closql package.

@graywolf-s1
Copy link

@wandersoncferreira Any chance of taking a look?

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

Successfully merging this pull request may close these issues.

10 participants