This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-13
Channels
- # aleph (15)
- # announcements (4)
- # babashka (36)
- # babashka-sci-dev (1)
- # beginners (15)
- # biff (2)
- # calva (15)
- # cider (3)
- # clj-kondo (8)
- # clojure (149)
- # clojure-europe (14)
- # clojure-norway (13)
- # clojure-switzerland (1)
- # clojure-uk (1)
- # clojurescript (21)
- # community-development (5)
- # cursive (20)
- # data-science (2)
- # datomic (7)
- # duct (5)
- # emacs (19)
- # etaoin (3)
- # events (2)
- # fulcro (11)
- # introduce-yourself (2)
- # jobs (4)
- # jobs-discuss (19)
- # joyride (1)
- # leiningen (11)
- # malli (7)
- # membrane (131)
- # nbb (12)
- # nginx (1)
- # off-topic (33)
- # pathom (8)
- # polylith (28)
- # re-frame (8)
- # sci (7)
- # shadow-cljs (225)
- # spacemacs (10)
- # specter (1)
- # vim (10)
- # xtdb (8)
I noticed that there are thousands of files in my tmp directory of the form system-deps1234.edn
that are being produced by the IntelliJ process. I assume this is a by-product of something Cursive is doing? I know they aren't harmful, but I'm intrigued as to why hundreds seem to be added every day.
i'm on a mac, so probably slightly different environment, but I don't experience this behavior. I would suspect that you have something in your specific setup that is causing it?
Have you tried creating an empty intellij/cursive project and seeing if it still happens?
if not, you could binary chop parts back in to see if you can figure out what is actually causing it
I'm using cursive in an SOA type project with 20+ individual intellij project files, btw, and I have none of these files at all. I did reboot yesterday, so it would only be files generated from my cursive usage today, but I've been working all day...
interesting. Thanks for looking Jeffrey. I've asked a few of my colleagues and they all see these files, so I suspect it is something to do with our project configuration.
@UCQV87CN7 Are you using the “Use tools.deps directly” option? I think what’s happening is that Cursive has to pull the system deps file out of the deps jar, and it puts it in a temporary file. It’s possible those are not cleaned up correctly - I’ll check. But you can delete them with no ill effects.
No, I'm not using that option @U0567Q30W
What's strange is quite how prolific these are. I have 4 clojure projects open in IntelliJ, but right now I'm not actively working in the IDE at all (just reading email in another window) yet another 25 edn files have been written in the last 5 minutes! If it helps, I've attached one of the files.
Right, that’s the system deps.edn file, which is extracted from the deps jar. I’ll check when those are generated, I thought I was creating a stable path for them but it looks like I’m not.
So, I’m not creating a stable path for them, I just create a temporary file. However, deleteOnExit() is called on them - does closing IntelliJ tidy them up?
Answering my own question, it looks like they are cleaned up correctly on process exit (at least on my macOS machine), but it’s probably a better idea to clean them up earlier.
Yes, they do seem to vanish if I close IntelliJ... I just never do that. Thanks for looking into this