cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
590 stars 7 forks source link

Suggestions list - missing live template description/abbreviation #1442

Closed kernelp4nic closed 8 years ago

kernelp4nic commented 8 years ago

This was working before...For example I have a live template for println, but now in the suggestions list doesn't show the description and I'm unable to differentiate the template from the clojure fns.

2016-06-20_10-35-12

IntelliJ IDEA 2016.1.1
Build #IC-145.597, built on March 29, 2016
JRE: 1.8.0_40-release-b132 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Cursive: Version: 1.3.0-eap3-2016.1
kernelp4nic commented 8 years ago

It's worse than I was thinking...if you have just a live template as a suggestion it doesn't show at all but the template stills works.

This is critical for me :(

kernelp4nic commented 8 years ago

If I create a live template to be used in every context, it's not shown on Clojure files, but shown in another files.

It's like the Clojure context is broken or something.

Just updated to the latest version of intellij and still have the same behaviour.

IntelliJ IDEA 2016.1.3
Build #IC-145.1617, built on June 3, 2016
JRE: 1.8.0_76-release-b198 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
cursive-ide commented 8 years ago

I tried this, and I can see what you mean. However, for me the built in ones seem to work, this is only an issue for user defined ones. Is that what you're seeing too? For example, does defn show in the autocomplete list?

cursive-ide commented 8 years ago

Actually, I take it back - this does work for me, however they don't appear in the completion list until the whole name of the template is typed out. So I have to enter println entirely before it appears in the completion.

kernelp4nic commented 8 years ago

Built in seems to works yes, but I can confirm this was working before because it broke my entire workflow.

2016-06-21_11-06-42

getstate

kernelp4nic commented 8 years ago

This is driving me nuts! :) I don't even know if this is a Cursive problem or an Intellij problem.

I would appreciate any clues.

cursive-ide commented 8 years ago

Sorry, I have no idea what's going on here :(

screen shot 2016-07-01 at 2 35 53 pm

Does this fail for you in clj and cljs, or only cljs?

Looking at your first example, every completion appears 3 times - is this normal? I'm wondering if you have CLJS on your classpath 3 times, and that might be what is messing things up.

kernelp4nic commented 8 years ago

I can confirm this fails under clj/cljs/cljc/cljx. Tested in bash for example and it works fine:

2016-07-01_08-24-33 2016-07-01_08-24-42

kernelp4nic commented 8 years ago

Sorry about the noise. I reinstalled intellj because this was driving me nuts and imported my old config and templates are back as they supposed to.

2016-07-15_11-52-08

Do I close this issue?

cursive-ide commented 8 years ago

That's really weird. I'm going to blame some IntelliJ weirdness on that one. I'll close this since I don't think there's anything I could do to fix it.

kernelp4nic commented 8 years ago

oh my...it's happening again :-(

kernelp4nic commented 8 years ago

So, I finally got it working again. I removed IdeaIC2016.2 folder and reinstalled Cursive.

OSX:

mv ~/Library/Application Support/IdeaIC2016.2 ~/Library/Application Support/IdeaIC2016.2.broken

I needed to change every Live Template context to Clojure again.