Open mfikes opened 10 years ago
I should add that, if I open a terminal in either of these projects and run lein repl
, things work. The problem seems to be related to the REPL in Cursive.
Actually this is much simpler to reproduce that I thought. Just open proj1
as illustrated in the original description start its REPL, close IntelliJ and reopen proj1
and attempt to start its REPL.
I have done a diff of the classpath present in the first line that is emitted when starting the REPL between the first time and the second time and I can see that simple-brepl is included the first time but not the second time.
Specifically, the first launch of the REPL includes:
/Users/mfikes/.m2/repository/jarohen/simple-brepl-core/0.1.1/simple-brepl-core-0.1.1.jar
and
/Users/mfikes/.m2/repository/com/cemerick/piggieback/0.1.3/piggieback-0.1.3.jar
where the second launch is missing these two dependencies.
Wow, that sounds extremely strange, not to mention annoying. I'll take a look and see if I can figure this out.
I'll retract my previous assertion that this is always reproducible. I've restarted IntelliJ perhaps 50 times now, deleting various things out of the temp directory, looking at network port usage etc. It feels like it is some unreleased resource (perhaps the REPL port still being in use or somesuch) that can cause something in the stack to omit those plugin dependencies. I'm using Yosemite GM 3 right now. Given what I now know, I wouldn't be surprised if this is a challenge to reproduce on other platforms or even other versions of OS X, so let me know if you would like me to dig further.
This is not a pressing issue for me; I've lived with it for quite a while and workarounds exist.
I have an issue where I can't close and then open another project using simple-brepl unless I restart my Mac (presumably clearing transient state in tmp directories).
How to reproduce:
Create a project (use
lein new proj1
) and addsimple-brepl
,weasel
, etc.:Import project into IntelliJ, set to use JDK 1.7 or later, and create a REPL (by right-clicking on
project.cl
) and run that REPL.Then close IntelliJ and create a similar project, say, named
proj2
, and follow same steps.When running the REPL, I get the following
If I reboot my Mac, this causes it to clear something under
/private/var/folders/
and then I can openproj2
and run its REPL. But then, I can't close, and then openproj1
and run its REPL.This is always reproducible, and I can always work around it by restarting my Mac.