Fork me on GitHub
#cursive
<
2021-10-25
>
imre08:10:17

Nice improvements!

wilkerlucio13:10:14

awesome! I'm just trying the new :as-alias support, I see when I use Cursive now correctly completes the keyword with it 🙌

wilkerlucio13:10:00

but seems like the IDE still marks that as an error (yellow background)

cfleming20:10:28

Hmm, thanks, I didn’t see that, I’ll check it.

cfleming20:10:01

@U08BJGV6E do you have an example?

cfleming20:10:28

Basically, as long as the key and value are not on the same line, that should work.

imre09:10:16

complex case:

imre09:10:37

It could be that I don't properly understand how this one should work, perhaps you have a counter-example?

imre09:10:45

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: Key Promoter X (2021.2), StringToolsPlugin (4.0), dev.monogon.cuelang (0.8.2), com.jetbrains.plugins.ini4idea (212.5457.62), com.intellij.plugins.watcher (212.5080.8), mobi.hsz.idea.gitignore (4.3.0), org.intellij.plugins.hcl (0.7.14), de.thomasrosenau.diffplugin (2.1.7-SNAPSHOT), name.kropp.intellij.makefile (212.5457.62), com.namespace.sort.namespace-sort-plugin (1.6-imrekoszo), org.jetbrains.kotlin (212-1.5.31-release-546-IJ4638.7), com.cursiveclojure.cursive (1.12.0-eap1-2021.2), org.intellij.scala (2021.2.23), String Manipulation (8.20.203.000.1)
Kotlin: 212-1.5.31-release-546-IJ4638.7

octahedrion10:10:10

I have "default to only indent" and "force only indent for all forms" selected but still structural editing moves like raise and splice reformat code, which I don't want. For example, splicing a pair of forms out of a vector into a parent map within a map will reformat the entire root map, and it's someone else's code so I don't want to change their formatting.

cfleming20:10:24

Hmm, I think that’s hard-coded at the moment and can’t be controlled. I’m going to re-work the structural actions soon and I can fix it then - could you file an issue so I don’t forget?

octahedrion08:10:01

ok thank you!

Ivar Refsdal13:10:09

Hm. When I do "Search REPL history" IntelliJ/Cursive crashes and logs me out (!). Not sure when this started happening.

cfleming20:10:56

Hmm, that’s very strange, do you mean that the whole application crashed? If so that sounds like a bug in IntelliJ or the JBR. I’m not sure there’s much I can do about that in Cursive itself, unfortunately.

onetom05:10:09

if i press cmd-opt-e, while my cursor is in the REPL tool window's expression input area, the Search history popup appears as expected. however, if i do cmd-shift-a "repl his" enter, the popup appears briefly, then disappears and the latest history entry is pasted into the input area, as if I had pressed enter twice. and indeed, if i click on the Search REPL history menu item in the action menu, the search popup appears and stays active.

onetom05:10:24

The Previous/Next REPL History Item actions also doesn't work, regardless of how I try to execute them (via shortcut or from the action menu)

cfleming05:10:46

Hmm, interesting, I’ll check those.

Ivar Refsdal07:10:01

For my case it (search REPL history) works in one project, but (yes) crashes and logs me out in another project. Maybe this is related to that the search popup is bigger than the monitor it ends up on? I've been mixing dual and single monitor setup.

cfleming20:10:47

Yes that could be. I’ve been meaning to make fixes to that so the window doesn’t get out of control. I’d say that's the most likely candidate, it’s probably hitting a bug in the window rendering or something similar.

Ivar Refsdal05:10:43

Any easy way to clear the REPL search history?

Ivar Refsdal13:10:33

I'm using 1.12.0-eap1-2021.2