Fork me on GitHub
#cursive
<
2022-11-28
>
Lusia04:11:54

@cfleming Manage to see this stub generation issue in IntelliJ IDEA 2022.2.4 (Ultimate Edition) Build #IU-222.4459.24, built on November 22, 2022 (on @onetom’s team), which we haven't seen before:

java.io.FileNotFoundException: /Users/lusia/Library/Caches/JetBrains/IntelliJIdea2022.2/cursive_stubs_3176d153/342a3e14-tmp/73746538.clj (No such file or directory)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
at java.base/java.io.FileOutputStream. (FileOutputStream.java:235)
at $fn__11619.invokeStatic(io.clj:230)
at $fn__11619.invoke(io.clj:230)
at $fn__11543$G__11525__11550.invoke(io.clj:69)
at $fn__11631.invokeStatic(io.clj:263)
at $fn__11631.invoke(io.clj:259)
at $fn__11543$G__11525__11550.invoke(io.clj:69)
at $fn__11593.invokeStatic(io.clj:166)
at $fn__11593.invoke(io.clj:166)
at $fn__11556$G__11521__11563.invoke(io.clj:69)
at $writer.invokeStatic(io.clj:119)
at $writer.doInvoke(io.clj:104)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:154)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invokeStatic(core.clj:669)
at clojure.core$spit.invokeStatic(core.clj:7021)
at clojure.core$spit.doInvoke(core.clj:7021)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at user$eval253.invokeStatic(create-stub5683523002239954284.clj:2)
at user$eval253.invoke(create-stub5683523002239954284.clj:2)
at clojure.lang.Compiler.eval(Compiler.java:7194)
at clojure.lang.Compiler.load(Compiler.java:7653)
at clojure.lang.Compiler.loadFile(Compiler.java:7591)
at clojure.main$load_script.invokeStatic(main.clj:475)
at clojure.main$init_opt.invokeStatic(main.clj:477)
at clojure.main$init_opt.invoke(main.clj:477)
at clojure.main$initialize.invokeStatic(main.clj:508)
at clojure.main$null_opt.invokeStatic(main.clj:542)
at clojure.main$null_opt.invoke(main.clj:539)
at clojure.main$main.invokeStatic(main.clj:664)
at clojure.main$main.doInvoke(main.clj:616)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:705)
at clojure.main.main(main.java:40)

cfleming08:11:24

Could you check which of those files exist? Does the file cursive_stubs_3176d153/342a3e14-tmp/73746538.clj exist? What about the cursive_stubs_3176d153/342a3e14-tmp or the cursive_stubs_3176d153 directories? Using the full path from the error message, of course.

Lusia09:11:50

subfolder 342a3e14-tmp doesn't exist

ls /Users/lusia/Library/Caches/JetBrains/IntelliJIdea2022.2/cursive_stubs_3176d153                          
7d8a2494  83c6d90e

onetom05:12:48

this has just happened to me again too, during stub generation on IJ Build #IU-223.7571.182, built on November 29, 2022 & Cursive 1.12.5-2022.3:

java.io.FileNotFoundException: /Users/onetom/Library/Caches/JetBrains/IntelliJIdea2022.3/cursive_stubs_1c381054/82249e8f-tmp/62a3afe9.clj (No such file or directory)
at java.base/java.io.FileOutputStream.open0(Native Method)
<same stack trace as above; i've spot-checked most line number and they matched>
checked the file hierarchy:
❯ cat /Users/onetom/Library/Caches/JetBrains/IntelliJIdea2022.3/cursive_stubs_1c381054/82249e8f-tmp/62a3afe9.clj
cat: /Users/onetom/Library/Caches/JetBrains/IntelliJIdea2022.3/cursive_stubs_1c381054/82249e8f-tmp/62a3afe9.clj: No such file or directory

❯ ls /Users/onetom/Library/Caches/JetBrains/IntelliJIdea2022.3/cursive_stubs_1c381054/82249e8f-tmp/          
ls: cannot access '/Users/onetom/Library/Caches/JetBrains/IntelliJIdea2022.3/cursive_stubs_1c381054/82249e8f-tmp/': No such file or directory

❯ ls /Users/onetom/Library/Caches/JetBrains/IntelliJIdea2022.3/cursive_stubs_1c381054/             
27a67855  82249e8f  a66d1e33

onetom05:12:05

noticed this, after i did a cache invalidation, because i still don't have symbol resolution everywhere in this project

onetom05:12:03

i've disabled

;com.clojure-goes-fast/clj-async-profiler
    ;{:mvn/version "1.0.0"}
so i have no errors or warning during opening this project, no errors in the project structure dialog either and no errors in the run configurations, but still no symbol resolution, even for clojure.core.