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

Org Roam2 does not work when enabling global-lsp-mode #1118

Open
Y0ngg4n opened this issue Dec 2, 2024 · 9 comments
Open

Org Roam2 does not work when enabling global-lsp-mode #1118

Y0ngg4n opened this issue Dec 2, 2024 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@Y0ngg4n
Copy link

Y0ngg4n commented Dec 2, 2024

I am using doom emacs. If i use the following config:

(use-package! lsp-bridge
  :config
  (global-lsp-bridge-mode)
)

If i try to use org-roam-capture the name of the new org filename-scheme get written to the capture buffer.
But the capture buffer gets never opened and so i can´t use org roam at all.

@manateelazycat
Copy link
Owner

I don't use roam, sorry can't help you.

PR are welcome.

@Y0ngg4n
Copy link
Author

Y0ngg4n commented Dec 3, 2024

@manateelazycat it worked in the version 1-2 months ago. So there has to be something that changed in that context.

@Y0ngg4n
Copy link
Author

Y0ngg4n commented Dec 4, 2024

@manateelazycat Also org-html-export-to-html in any org file does not work.

@manateelazycat
Copy link
Owner

manateelazycat commented Dec 15, 2024

Maybe

(defun acm-get-input-prefix-bound ()
will help.

I guess

   (cons (point)
         (save-excursion
           (if (search-backward-regexp "\\s-" (point-at-bol) t)
               (progn
                 (forward-char)
                 (point))
             (point-at-bol)))))

is add before org-roam branch cause this issue

@manateelazycat manateelazycat added the help wanted Extra attention is needed label Dec 15, 2024
@Y0ngg4n
Copy link
Author

Y0ngg4n commented Dec 18, 2024

@manateelazycat so what should i do in my config.el?

@manateelazycat
Copy link
Owner

@manateelazycat so what should i do in my config.el?

I don't use org-roam, I don't know how to help you.

@manateelazycat
Copy link
Owner

Maybe @pastnontra know how to fix this issue?

@pastnontra
Copy link
Contributor

Sorry for the delay @Y0ngg4n, I missed the notification email for some reasons. I've been used old version for a long time and update to master recently. I'm unable to reproduce your issues stably. Both issues happened together only once. And I've tried many time but still can't reproduce those issues again after rebooting Emacs. Below is the error messages in the first run:

org-roam-capture: org-capture: Capture template ‘d’: Wrong type argument: sequencep, org-display-buffer-split
Maybe this issue helps?

org-html-export-to-html: org-export-as: Symbol’s function definition is void: org-element-copy-buffer

Debugger entered--Lisp error: (void-function org-element-copy-buffer)
  org-element-copy-buffer(:to-buffer nil :drop-visibility nil :drop-narrowing nil :drop-contents nil :drop-locals nil)
  org-export-as(html nil nil nil (:output-file "new.html"))
  org-export-to-file(html "new.html" nil nil nil nil nil)
  org-html-export-to-html()
  funcall-interactively(org-html-export-to-html)
  command-execute(org-html-export-to-html record)
  execute-extended-command(nil "org-html-export-to-html" nil)
  funcall-interactively(execute-extended-command nil "org-html-export-to-html" nil)
  command-execute(execute-extended-command)

Limited to my elisp level, I can't find how lsp-bridge is relevant to those issues, and I'm not sure what lsp-bridge has changed in past few months.

Does those issues still occur in your environment when lsp-bridge-mode enabled? Could you give me reproduce steps.

FYI, this is my environment: vanilla Emacs 29.4, macOS, both lsp-bridge and org-roam are updated to the latest version.
Testing config is here:

(use-package org-roam
  :config
  (org-roam-db-autosync-mode))

(use-package lsp-bridge
  :straight '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge"
                         :files (:defaults "*.el" "*.py" "acm" "core" "langserver" "multiserver" "resources")
                         :build (:not compile))
  :custom
  (acm-enable-org-roam t)
  :config
  (global-lsp-bridge-mode))

@Y0ngg4n
Copy link
Author

Y0ngg4n commented Dec 26, 2024

hi @pastnontra. Thank you for your detailed answer. I will try it out in the new year as i am kinda busy the next days. But thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants