cursive

Issues at: https://git.io/cursive-issues
cfleming 2020-12-22T00:07:08.459400Z

Yes, I think that’s still the case. What is not working for you?

kenny 2020-12-22T00:07:40.459600Z

It treats the local/root as an external dep.

kenny 2020-12-22T00:08:11.459800Z

e.g., opens the tab in a tan color. If I try to edit, it pops open "Non-Project files protection"

kenny 2020-12-22T00:08:28.460Z

The tab's path is the local root directory too.

cfleming 2020-12-22T00:12:27.460200Z

Do you have the dependency deps.edn file added as a deps project?

kenny 2020-12-22T00:12:50.460500Z

No

cfleming 2020-12-22T00:40:09.460700Z

If you add that, does it help?

kenny 2020-12-22T00:41:38.460900Z

Yes. It also adds it to .idea/clojure-deps.xml though. That file is in VCS. Not everyone wants my local project added to their IntelliJ setup (it also may not have the same path)

cfleming 2020-12-22T00:42:01.461100Z

Oh, are you adding this via a user deps.edn or something?

kenny 2020-12-22T00:42:19.461300Z

No. A project's deps.edn.

cfleming 2020-12-22T00:42:37.461500Z

Ok, but that project isn’t checked into VCS?

kenny 2020-12-22T00:42:58.461700Z

So I have 1 monorepo IntelliJ project. There's a bunch of modules. One of those modules uses :local/root to a project outside of the IntelliJ project root directory.

kenny 2020-12-22T00:43:08.461900Z

It is but it's in a separate repository.

cfleming 2020-12-22T00:55:38.462100Z

Hmm, I see. Could you file an issue for that and I’ll look at it?

kenny 2020-12-22T01:11:20.462300Z

https://github.com/cursive-ide/cursive/issues/2474. Super busy today, so I hope that'll do it. Let me know if you need any other info.

cfleming 2020-12-22T01:11:41.462600Z

Thanks, I’ll take a look in the next couple of days and let you know if I need more info.

2020-12-22T12:41:09.465Z

Hi, can I force stub generation? I have a project using clojure.java-time . Cursive did generate the stubs about a month before. But now with 1.10.0-2020.3 Cursive had some errors while generating stubs. After the errors even reopening the project doesn’t generate the stubs.

2020-12-23T13:33:17.465200Z

I can force the stub generation with an “Invalidate & Restart” in the File menu. However after starting stub generation, I get the following exception:

2020-12-23T13:33:17.465400Z

com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
	at com.intellij.openapi.project.IndexNotReadyException.create(IndexNotReadyException.java:67)
	at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:752)
	at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:704)
	at com.intellij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:229)
	at com.intellij.util.indexing.FileBasedIndexEx.processValueIterator(FileBasedIndexEx.java:334)
	at com.intellij.util.indexing.FileBasedIndexEx.processValuesInScope(FileBasedIndexEx.java:303)
	at com.intellij.util.indexing.FileBasedIndexEx.processValues(FileBasedIndexEx.java:204)
	at com.intellij.util.indexing.FileBasedIndexEx.processValues(FileBasedIndexEx.java:192)
	at cursive.index$namespaces.invokeStatic(index.clj:443)
	at cursive.index$namespaces.invoke(index.clj:435)
	at cursive.index$namespaces.invokeStatic(index.clj:438)
	at cursive.index$namespaces.invoke(index.clj:435)
	at cursive.namespace$namespaces_by_name.invokeStatic(namespace.clj:230)
	at cursive.namespace$namespaces_by_name.invoke(namespace.clj:224)
	at cursive.stubs$stub_file_name$reify__15640.compute(stubs.clj:68)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:875)
	at cursive.stubs$stub_file_name.invokeStatic(stubs.clj:67)
	at cursive.stubs$stub_file_name.invoke(stubs.clj:57)
	at cursive.stubs$clj_namespace_form.invokeStatic(stubs.clj:98)
	at cursive.stubs$clj_namespace_form.invoke(stubs.clj:97)
	at cursive.stubs$generate_stubs$fn__15692$process__15693$fn__15697.invoke(stubs.clj:265)
	at clojure.core$keep$fn__8559.invoke(core.clj:7341)
	at clojure.lang.LazySeq.sval(LazySeq.java:42)
	at clojure.lang.LazySeq.seq(LazySeq.java:51)
	at clojure.lang.RT.seq(RT.java:535)
	at clojure.core$seq__5402.invokeStatic(core.clj:137)
	at clojure.core$map$fn__5866.invoke(core.clj:2746)
	at clojure.lang.LazySeq.sval(LazySeq.java:42)
	at clojure.lang.LazySeq.seq(LazySeq.java:51)
	at clojure.lang.LazySeq.first(LazySeq.java:73)
	at clojure.lang.RT.first(RT.java:692)
	at clojure.core$first__5384.invokeStatic(core.clj:55)
	at clojure.string$join.invokeStatic(string.clj:180)
	at clojure.string$join.invoke(string.clj:180)
	at cursive.stubs$generate_stubs$fn__15692$process__15693.invoke(stubs.clj:264)
	at cursive.stubs$generate_stubs$fn__15692.invoke(stubs.clj:325)
	at cursive.task$backgroundable$reify__15626.run(task.clj:12)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:962)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:472)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:834)

2020-12-23T13:33:17.465600Z

The project is https://github.com/samply/blaze. One file with clojure.java-time is https://github.com/samply/blaze/blob/master/modules/db/test/blaze/db/api_test.clj