Yes, I think that’s still the case. What is not working for you?
It treats the local/root as an external dep.
e.g., opens the tab in a tan color. If I try to edit, it pops open "Non-Project files protection"
The tab's path is the local root directory too.
Do you have the dependency deps.edn file added as a deps project?
No
If you add that, does it help?
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)
Oh, are you adding this via a user deps.edn or something?
No. A project's deps.edn.
Ok, but that project isn’t checked into VCS?
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.
It is but it's in a separate repository.
Hmm, I see. Could you file an issue for that and I’ll look at it?
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.
Thanks, I’ll take a look in the next couple of days and let you know if I need more info.
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.
I can force the stub generation with an “Invalidate & Restart” in the File menu. However after starting stub generation, I get the following exception:
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)
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