Fork me on GitHub
#cursive
<
2021-10-21
>
wilkerlucio00:10:23

I'm seeing a strange hightlight behavior, as I move my cursor over the keywords it gets some parts green that make no match with the current keyword

imre09:10:00

I also noticed this, not specific to keywords

imre09:10:06

IntelliJ IDEA 2021.2.3 (Community Edition)
Build #IC-212.5457.46, built on October 12, 2021
Runtime version: 11.0.12+7-b1504.40 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.6
GC: ParNew, ConcurrentMarkSweep
Memory: 4029M
Cores: 8
Registry: scala.erase.compiler.process.jdk.once=false
Non-Bundled Plugins: net.seesharpsoft.intellij.plugins.csv (2.17.1), com.intellij.plugins.watcher (212.5080.8), Key Promoter X (2021.2), StringToolsPlugin (4.0), de.thomasrosenau.diffplugin (2.1.7-SNAPSHOT), com.jetbrains.plugins.ini4idea (212.5457.59), org.intellij.plugins.hcl (0.7.14), dev.monogon.cuelang (0.8.2), com.namespace.sort.namespace-sort-plugin (1.6-imrekoszo), name.kropp.intellij.makefile (212.5457.59), mobi.hsz.idea.gitignore (4.3.0), String Manipulation (8.19.203.000.0), org.intellij.scala (2021.2.23), org.jetbrains.kotlin (212-1.5.31-release-546-IJ4638.7), com.cursiveclojure.cursive (1.11.0-2021.2)
Kotlin: 212-1.5.31-release-546-IJ4638.7

markaddleman19:10:39

I recently started using https://github.com/hyperfiddle/rcf . It's pretty nice. I'd love to configure Cursive to treat its tests macro the same as clojure core's comment macro for the purposes of sending the top form to the REPL. Under Cursive's current behavior, only (inc 1) form is considered the top form:

(comment
  (inc 1) ; <- cursor in this form
  (inc 2))
Whereas, the entire (tests ...) form is considered the top form:
(tests
   (inc 1)
   (inc 2))
As a default behavior, this makes sense. However, I don't think there's currently a way to tell Cursive to treat tests the same as comment

cfleming21:10:50

I’ll check this - I’m not sure if it’s possible to resolve-as a form as comment. I’m also not sure you’d want that, since it disables some functionality inside comment blocks. Could you file an issue for that?

markaddleman15:10:11

Thanks for Cursive!

cfleming20:10:39

Great, thanks!