You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was writing some Java-interop code with cider and noticed that I need to add a lot of explicit type-hints to get good quality autocomplete suggestions. It was suggested to me in slack that I ought to open an issue.
My assumption was that code like
(doto (BaseClass.)
(.| ))
would provide completion for methods of BaseClass. Instead, it looks like I get suggestions for hundreds of methods from some other clases. For example:
To get better suggestions, I need to say:
(doto ^SomeClass (SomeClass.)
(.| ))
Also, I noticed that the completions do not consider the class inheritance hierarchy. Here, the ChildClass inherits from BaseClass:
The text was updated successfully, but these errors were encountered:
lassemaatta
changed the title
Good completion suggestions require extra many type hints
Good completion suggestions require extra type hints
Nov 11, 2023
I was writing some Java-interop code with
cider
and noticed that I need to add a lot of explicit type-hints to get good quality autocomplete suggestions. It was suggested to me in slack that I ought to open an issue.My assumption was that code like
would provide completion for methods of
BaseClass
. Instead, it looks like I get suggestions for hundreds of methods from some other clases. For example:To get better suggestions, I need to say:
Also, I noticed that the completions do not consider the class inheritance hierarchy. Here, the
ChildClass
inherits fromBaseClass
:An example repository.
Versions:
CIDER 1.12.0-snapshot
GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu)
The text was updated successfully, but these errors were encountered: