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
Autocomplete of ns doesn't work when there's no alias to it #1352
Comments
@ericliou I suspect this is a clojure-lsp bug pretty specific to not being able to complete a invalid code (my-ns)
clojure.string/ The (my-ns)
(clojure.string/) Auto completing after I know is pretty weird, but could you try both and LMK? |
foo/
)
Tried with the case where the file ends with closing paren and it didn't work. Also, with an alias, So.. I tried something else and it changed the problem a bit. These cases started to autocomplete functions reliably:
The only issues that are still left are:
These are weird but minor issues that I can live with :) |
foo/
)
Uh, I do notice that we doesn't suggest |
Fixed on master, available on next release (a couple of days probably)! |
Describe the bug
In Emacs, when requiring a ns without an alias, autocomplete doesn't seem to work.
Even with an alias, it still fails at some weird cases.
I also tried with the same clojure-lsp server in nvim and it works every time <3. So it looks like the problem is isolated around integration with emacs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The relevant autocomplete candidates are shown with or without alias.
Screenshots
new-recording.mp4
Log - client <-> server
Log - clojure-lsp
User details (please complete the following information):
clj-kondo 2022.10.05
Additional context
New Emacs user here, it could be some configuration issue. But the issue was reproduced with a minimal init.el.
The text was updated successfully, but these errors were encountered: