-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Update breaks autocomplete in jupyter-emacs org mode code cells #188
Comments
The commit If I am under a block string ( |
In my case, everything starts to work with this patch: diff --git a/julia-mode.el b/julia-mode.el
index cc81343..95af6b4 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -918,9 +918,7 @@ buffer where the LaTeX symbol starts."
(defun julia--company-indent-for-tab-command (arg)
"Call `indent-for-tab-command' or `company-indent-or-complete-common'."
(interactive "P")
- (if company-mode
- (company-indent-or-complete-common arg)
- (indent-for-tab-command arg)))
+ (indent-for-tab-command arg))
(with-eval-after-load 'company
(define-key julia-mode-map [remap indent-for-tab-command] I can also replace the latex symbols by typing C-SPC in Doom emacs. Perhaps the problem is to assume that everybody is using TAB to perform completions? |
We need to pin julia-emacs until the following issue is fixed: JuliaEditorSupport/julia-emacs#188
Thanks @ronisbr that fixes it for me. Edit: no wait, sorry that does not actually fix for me :( |
Hum, so maybe I am facing another issue. If so, I will open a new one here. |
Addressing the original filed issue: don't have much free time to spend right now, but I can at least direct you towards emacs-jupyter/jupyter#236. That PR probably might not fix the issue without some cleanup since #100 developed quite a bit afterward, but it should be a reasonable starting point. The problem @ronisbr is seeing is completely separate, and I'll address in a separate reply. EDIT: Actually glancing at emacs-jupyter/jupyter#236, it probably works as is and just needs rebased. Not going to turn it from "Draft" into a full PR until somebody tests it though, and I don't have bandwidth to do so at the moment. |
So the problem you're having is that you're using a capf backend (perhaps eglot) that can always come up with completion candidates. |
This just causes issues as seen with JuliaEditorSupport#188 (comment). If you're choosing to install a fairly dramatic departure from standard emacs completion like `company`, you can't expect things like `julia-mode` to go out of their way to accomodate the ways `company` breaks normal emacs completion. The alternative would be to instead manually check `tab-always-indent` within `julia--company-indent-for-tab-command`, but I still feel like this would cause more confusion than it cures.
Thanks for the quick patch @non-Jedi, just merged #192. @MasonProtter, @ronisbr: please check if the issue is fixed for you. |
Just tried it out and autocomplete of LaTeX is still broken for me.
Nope, that doesn't solve it for me. |
Hi! Thanks for the quick patch! My problem is more-or-less solved because I cannot have the previous behavior. If I use the latest commit with If I set I am not saying we must revert to the old behavior. I am just saying that the behavior has changed and I am not certain if this is a bug or how the new system must work. |
For the problem with jupyter-emacs from the OP, I did some preliminary investigation and commented in emacs-jupyter/jupyter#236. This isn't really a julia-mode bug but a bug in the downstream dependency jupyter-emacs (caused by julia-mode making a breaking change). I'd recommend closing this issue and tracking the jupyter-emacs issue in either emacs-jupyter/jupyter#236 or a new issue against the repo. For @ronisbr point above, I'm going to open a new issue for discussion. |
I was using v0.4, but today I was trying to diagnose a problem so tried updating to the latest
julia-emacs
and it works fine injulia-mode
, but when I open an org notebook that hasjupyter-julia
cells in it, completion no longer functions. Downgrading julia-emacs to v0.4 solves the issue for me.The text was updated successfully, but these errors were encountered: