Fork me on GitHub
#cursive
<
2023-11-27
>
steveb8n21:11:45

I updated to this and tried to generate stubs (looking forward to improved Specter support) but generation fails. there’s no option to “report” back to you like for other errors. Is this known? I can provide a stack trace if it helps

steveb8n21:11:35

Exit code: 1 java.io.FileNotFoundException: /Users/steve/Library/Caches/JetBrains/IntelliJIdea2023.2/cursive_stubs_f40e68d3/f40e68d3-tmp/6956c44b.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 http://clojure.java.io$fn__11619.invokeStatic(io.clj:230) at http://clojure.java.io$fn__11619.invoke(io.clj:230) at http://clojure.java.io$fn__11543$G__11525__11550.invoke(io.clj:69) at http://clojure.java.io$fn__11631.invokeStatic(io.clj:263) at http://clojure.java.io$fn__11631.invoke(io.clj:259) at http://clojure.java.io$fn__11543$G__11525__11550.invoke(io.clj:69) at http://clojure.java.io$fn__11593.invokeStatic(io.clj:166) at http://clojure.java.io$fn__11593.invoke(io.clj:166) at http://clojure.java.io$fn__11556$G__11521__11563.invoke(io.clj:69) at http://clojure.java.io$writer.invokeStatic(io.clj:119) at http://clojure.java.io$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$eval255.invokeStatic(create-stub12140050917201924637.clj:2) at user$eval255.invoke(create-stub12140050917201924637.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$script_opt.invokeStatic(main.clj:535) at clojure.main$script_opt.invoke(main.clj:530) 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)

cfleming21:11:12

Does /Users/steve/Library/Caches/JetBrains/IntelliJIdea2023.2/cursive_stubs_f40e68d3 exist? Which is the first missing dir there?

steveb8n22:11:35

yes… ll /Users/steve/Library/Caches/JetBrains/IntelliJIdea2023.2/cursive_stubs_f40e68d3 total 0 drwxr-xr-x 3 steve staff 96B Dec 1 08:41 96ce8def drwxr-xr-x 3 steve staff 96B Nov 30 18:08 e7f39d98 drwxr-xr-x 3 steve staff 96B Dec 1 08:41 f40e68d3

cfleming22:11:04

So f40e68d3-tmp doesn’t exist then I guess?

cfleming22:11:38

If you make that manually, that should fix the problem, and I’ll look into how that might have happened.

steveb8n22:11:57

could it be something about my local fs config? e.g. I have disk encryption enabled

cfleming22:11:26

I’m not sure, do you have any other messages about f40e68d3-tmp in your log?

steveb8n22:11:56

none I have noticed but I will watch for it

cfleming22:11:16

Ok, let me know if the workaround doesn’t work around

steveb8n22:11:23

I do get another Cursive error every time I start the idea, which I report. I’ll double check that

steveb8n22:11:45

is there a way to force stub generation? can’t see a command

cfleming22:11:05

Just refresh your project in your deps toolwindow.

steveb8n22:11:08

didn’t work, neither did restart but I’ve got auto-gen for stubs enabled so maybe it happened without me seeing it

steveb8n22:11:21

I’ll carry on and will report here if I see further stubs issues after I manually add -tmp dirs

steveb8n22:11:05

can confirm that manually adding -tmp dirs is a good workaround

cfleming22:11:42

Ok great, thanks. I’ll look at why that might not have been created.

hlship18:11:28

I just tried the EAP and my :local alias (using :local/root coordinates) now seems to be working correctly! Thanks Colin!

👍 1
cfleming21:11:02

Great! I’m actually not sure why that fixed your problem, I guess you might have been affected by the incorrect fix to #2845. Anyway, I’m glad it’s working!

hlship22:11:17

Yes, it did seem only tangentially related but I'll Take The Win ™️