-
Notifications
You must be signed in to change notification settings - Fork 193
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
lsp-bridge
clogging org-babel-tangle
when enabled
#942
Comments
I don't use org-mode, you can add some check condtion in function lsp-bridge-monitor-after-change to avoid lsp-bridge start in org-babel-tangle |
Hello, I haven't checked back on this issue for quite a while now. I had a different approach to resolving this issue. I haven't checked on I have short script called #!/usr/bin/env bash
set -e
emacs --batch -l org --eval "(org-babel-tangle-file \"$1\")" Then I write a callable in emacs that will run that script within emacs (defun tangle-config-org ()
"Callable that runs `org-tangle-file' script"
(interactive)
(shell-command (concat "org-tangle-file "
(expand-file-name "config.org" doom-user-dir)))) Finally, I have a local variable set up at EOF of my
That way every time I save my Although, still at the same spirit, having packages needlessly intruding into operation where it is not supposed to be would be ideal. PS. As in my case it is somewhat solved, even with different approach from the proposed one. I am willing to have this issue closed by @manateelazycat. But if someone else have a different and more suitable, package level, approach. I believe it is also swell to have the discussion going. |
I am using literate config for my emacs system. It uses quite a verbose amount of tangled blocks.
but with
lsp-bridge
enabled, every time I runorg-babel-tangle
the operation that usually takes short seconds, one time I measured it took up to 3 minutes. I also checked onhtop
that suddenly there are multiple language server being run.I believe during the process of tangling a file (I'd argue even also when executing code block)
lsp-bridge
is not something that is needed to run. as it is simply duplicating the blocks of codes into the target file. As in such activity there is no editing involved, of whichlsp-bridge
is used for.This also confirmed by profiler results:
CPU
Memory
PS: This is also the case even when
lsp-bridge-enable-org-babel
is set to nilThe text was updated successfully, but these errors were encountered: