Closed lsnape closed 9 years ago
The OOME PermGen error might be related to our use of source rewriting. After googling this error it sometimes appears when loading a ton of classes, and our source rewriting does create quite a few unique classes to avoid polluting the classpath. If you project is large and/or has a ton of dependencies, and especially if you're running on a 32bit VM (smaller default), then this might be the cause of your woes.
Try adding the jvm opt -XX:MaxPermSize=128M
and see if that solves your problem.
Yep adding :jvm-opts ["-XX:MaxPermSize=128M"]
to my profiles.clj
has done the trick.
Very odd that it manifested itself as the InvocationTargetException
pasted above. Anyway, all working and up-to-date. Thanks very much :D
With the advent of clj-refactor 1.1.0 I decided to update my Emacs config and Clojure deps from cider 0.8.2 -> 0.9.1, clj-refactor to 1.1.0 (not sure exactly what it was before), and refactor-nrepl -> 1.1.0.
I created a new project and ran
lein repl
and everything worked fine; however, when I tried to fire up a repl for an existing project (with actual code to compile), I get this compiler error:I've tried other projects and they don't load either. The compiler errors vary but most of them are OOME PermGen space related.
To clarify, I'm just running
lein repl
in the terminal, so this is nothing emacs related. I've emptied myprofiles.clj
so it only contains:[refactor-nrepl "1.1.0"]
, wiped my local maven repo etc. The ideas barrel is starting to get empty now! Any ideas what this could be?Thanks in advance :)