compliment icon indicating copy to clipboard operation
compliment copied to clipboard

Non static member completion not working?

Open didibus opened this issue 5 years ago • 8 comments

I can't seem to get non static member completion to work. If I do the following:

(def foo "test")
(.c foo)

I get all kind of completions unrelated to String, like .checkSystemClipboardAccess.

Same with this one:

(def bar (HashMap.))
(.p bar)

I expect to see only HashMap methods starting with p, as stated in the examples wiki: https://github.com/alexander-yakushev/compliment/wiki/Examples.

Regards

didibus avatar Nov 21 '18 08:11 didibus

Same problem for me in emacs/cider

It never worked for me, but I was not aware so far, that it should work,,,

behrica avatar Nov 22 '18 15:11 behrica

@didibus Can you please describe your setup/versions? The String example works for me, but the HashMap one indeed doesn't if I don't import java.util.HashMap before.

alexander-yakushev avatar Nov 22 '18 20:11 alexander-yakushev

OK, I discovered a bug when even after importing HashMap its methods are still not shown. It's a mystery how this bug stood for so long.

I'm still interested in your setup to understand why String methods are not filtered, though.

alexander-yakushev avatar Nov 22 '18 21:11 alexander-yakushev

I somehow think it is a Emacs/Cider related problem. @didibus, are you using Cider ?

I created this issue in Cider: https://github.com/clojure-emacs/cider/issues/2528

behrica avatar Nov 22 '18 23:11 behrica

Unrelated to emacs/cider.

It's an other problem.

I updated clojure-emacs/cider#2528 accordingly

behrica avatar Nov 23 '18 11:11 behrica

I am using Cider. I won't have a computer till Wednesday, but I'll share my setup details once I do.

Thanks.

On Fri, Nov 23, 2018, 06:57 Carsten Behring [email protected] wrote:

Unrelated to emacs/cider.

It's an other problem.

I updated clojure-emacs/cider#2528 https://github.com/clojure-emacs/cider/issues/2528 accordingly

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexander-yakushev/compliment/issues/57#issuecomment-441223243, or mute the thread https://github.com/notifications/unsubscribe-auth/AAktxGbWZ2yLx5b-afKELTZSutAXf7luks5ux-K6gaJpZM4YsqLQ .

didibus avatar Nov 25 '18 19:11 didibus

So I'm running:

GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) of 2016-10-19 CIDER 0.19.0snapshot (package: 20181030.2222) Spacemacs v.0.300.0

Let me know if you want any other info.

didibus avatar Dec 07 '18 01:12 didibus

Just to be on the safe side, please upgrade to the latest CIDER snapshot and try again. I fixed a related bug there. Also, do you mind sharing how your CIDER config looks like in init.el?

alexander-yakushev avatar Dec 07 '18 16:12 alexander-yakushev

Refreshing my memory on this, looks like this was an issue with CIDER and not so much with Compliment.

alexander-yakushev avatar Jul 14 '23 19:07 alexander-yakushev