cursive-ide / cursive

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

Navigate > Test (⇧⌘T) displays context menu with no-op first choice #2235

Open sooheon opened 5 years ago

sooheon commented 5 years ago

The "Choose Test..." popup used to give me the option to jump to test if it exists, or to create one if it does not. Having cursor over symbol meant a test specifically for that symbol, and cursor over ns meant ns test.

Now, it gives me the option to jump to two namespaces with the same name, but they aren't test namespaces. It also does not give me an option to create test for var at point.

Screen Shot 2019-09-18 at 4 03 24 PM

Cursive: 1.8.2-2019.2

IDEA ver IntelliJ IDEA 2019.2.2 (Ultimate Edition) Build #IU-192.6603.28, built on September 6, 2019 Licensed to Sooheon Kim Subscription is active until December 13, 2019 For educational use only. Runtime version: 1.8.0_202-release-b1491 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.15 GC: ParNew, ConcurrentMarkSweep Memory: 6092M Cores: 8 Registry: ide.mac.allowDarkWindowDecorations=true, ide.tooltip.initialDelay=999 Non-Bundled Plugins: IdeaVIM, com.jetbrains.lightThemePreview, com.intellij.plugins.watcher, intellij.haskell, net.seesharpsoft.intellij.plugins.csv, com.cursiveclojure.cursive, com.jetbrains.plugins.jade, Pythonid, org.toml.lang, org.rust.lang
sooheon commented 5 years ago

Just for clarification, I've verified that NS -> test NS mapping and var -> test var mappings are unchanged from defaults:

Screen Shot 2019-09-26 at 2 11 22 AM
sooheon commented 4 years ago
  1. Start with implementation page with no corresponding test file
  2. Press shortcut

Expected behavior: Immediately create test file according to file template

Actual behavior:

Screen Shot 2019-11-22 at 1 49 21 PM

Display menu, where the first option does nothing and remains on the same page.

This behavior is paralleled for tests for defns, and in the other direction, test to impl