Fork me on GitHub

When I have cursive format some code, it always moves same-line comments far to the right (e.g. this: foo (:bar baz) ; barring the baz gives you foo becomes this: foo (:bar baz) ; barring the baz gives you foo). is that configurable? I want it to not do that 🙂


Yep, Preferences | Editor | Code Style | Clojure | General | Comment alignment column. Set it to 0 if you just want them left alone.

🙌 1

I think there’s a (lisp) convention that ; aligns to the right and ;; aligns to the left correct?


or i suppose ;;; aligns left, ;; aligns at the current indentation level, and ; aligns to the right?


I’m not sure to be honest.


I thought ;; was used for kind of like a ‘higher level’ comment about a block of code, which I guess would normally be at the left.


Hi @cfleming! Using Intellij-2021.3.1 Runtime version: 11.0.13+7-b1751.21 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. and Cursive 1.12.1-2021-3 I am always getting this exception when trying to use the shortcut for REpl-history.

clojure.lang.ArityException: Wrong number of args (2) passed to: cursive.repl.toolwindow/history-move
	at clojure.lang.AFn.throwArity(
	at clojure.lang.AFn.invoke(
	at cursive.repl.actions$history_next.invokeStatic(actions.clj:542)
	at cursive.repl.actions$history_next.invoke(actions.clj:539)
	at clojure.lang.Var.invoke(
	at cursive.api.DelayedFn.invoke(
	at cursive.actions.ClojureActionBase.actionPerformed(
	at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$10(
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.doPerformActionInner(
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(
	at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(
	at com.intellij.ide.IdeEventQueue._dispatchEvent(
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(
	at com.intellij.ide.IdeEventQueue.dispatchEvent(
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/
Anyone found this error before?


Yes, a few people have reported this. I haven’t managed to reproduce it, but there is a fix that I think will work in the next EAP.

💯 2
Drew Verlee22:01:00

does cursive have step debugging features for cljs?


No, it doesn’t, sadly. It’s something I’d love to add and have spent a decent amount of time investigating, but it’s a lot of work.

❤️ 1
Drew Verlee22:01:26

gotcha, yea. I'm no help there sadly. I'm just collecting information on if anything has support for it. I think the answer is no. I'm curious if somehow all the solutions can share a common set of features though in order get more mind share and hopefully support (financial, etc..).


The source maps give you source-level debugging in the js console in Chrome.


in the sources tab


and exception breakpoints


it isn't perfect, but it isn't "nothing"