cursive

Issues at: https://git.io/cursive-issues
salam 2020-12-10T01:21:11.373600Z

Colin, before you release cursive 1.10.0, do you mind fixing this NPE which seems to be new?

java.lang.NullPointerException
	at cursive.scratch.CopyLibraryFileToScratchAction.update(Scratches.kt:46)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:178)
	at com.intellij.ide.util.gotoByName.GotoActionModel.updateActionBeforeShow(GotoActionModel.java:337)
	at com.intellij.ide.util.gotoByName.GotoActionModel$ActionWrapper.lambda$getPresentation$0(GotoActionModel.java:701)
	at com.intellij.ide.util.gotoByName.GotoActionModel.lambda$updateOnEdt$4(GotoActionModel.java:495)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:216)
	at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:24)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:199)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:324)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:85)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:134)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
	at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:190)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:843)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:501)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

cfleming 2020-12-10T01:40:25.373900Z

I’ll document that and add it to the troubleshooting page in the userguide, thanks. The short answer is that when you run an external process, having output on stderr is often the only way to know that a problem occurred - I’ve seen a lot of cases where the process exit code isn’t set to an error condition.

cfleming 2020-12-10T01:41:25.374100Z

That should work, I think - I’ll have a look at that and see if I can reproduce it.

JAtkins 2020-12-10T01:42:52.375400Z

Thanks. This usually works fine, but something is weird today :/. Btw I’m on IntelliJ 2020.3 and cursive eap

cfleming 2020-12-10T01:43:36.376Z

Done, thanks.

🎉 1
1
JAtkins 2020-12-10T01:44:16.377500Z

Right. I just never thought of it. Perfectly reasonable behavior, once you’ve thought of it :)

JAtkins 2020-12-10T01:44:30.377900Z

Thanks!

cfleming 2020-12-10T04:00:54.378200Z

https://twitter.com/CursiveIDE/status/1336882984251576322

❤️ 3
🎉 4
stijn 2020-12-10T09:37:43.378400Z

named REPLs are 💯 !

➕ 2
cfleming 2020-12-10T10:19:53.378600Z

Great!

helios 2020-12-10T10:49:01.378800Z

congrats on shipping @cfleming 😄

cfleming 2020-12-10T23:32:05.386200Z

Thanks @helios! I was worried about this one since I’m about to move cities so I didn’t want it to all go to pot, but it was the smoothest EAP ever, especially one that contains a lot of new stuff - phew!

Lucio Assis 2020-12-14T21:11:10.399200Z

Thank you SO MUCH for the test runner and the lib file scratches! These will help me immensely!

Henry 2020-12-10T12:24:56.381200Z

Quick question: in terms of "send top form to repl", is there a way for the result to be printed directly next to the form in the file, instead of the repl? Thank you.

genekim 2020-12-16T05:12:34.408300Z

Incredible! I’ve always loved that in LightTable! 🎉🎉 I always assumed it would be impossible inside IntelliJ. Brilliant!

genekim 2020-12-16T05:12:49.408700Z

🤞🤞🙏🙏😃😃

cfleming 2020-12-16T08:28:07.409Z

It actually was until the last couple of releases, but they’ve made a lot of great changes there in the 2020.x series.

2020-12-10T18:05:08.383Z

https://github.com/cursive-ide/cursive/issues/394 Hey @cfleming, just wondering if this issue is on your radar? Running into renamed functions behind undefined

2020-12-10T18:05:50.383800Z

This happens in both ns forms and let destructuring

cfleming 2020-12-10T23:32:37.386400Z

Yes, I’ve been meaning to look at that one, I’ll try to do it for the next EAP.

cfleming 2020-12-10T23:33:22.386600Z

There isn’t at the moment, but it’s something I’m planning to implement very soon.

👍 2
🤯 1