Fork me on GitHub
#cursive
<
2021-06-27
>
aratare11:06:50

Hi @cfleming, this was brought up a while back but I’m not sure if it’s been fixed now. Currently I’m working on a project that hasn’t been opened in 2 months, and when I try to run a REPL I’m met with the dreadful Surpressed exit with no other information whatsoever. Has this been fixed? If not, is there anyway I can get some more information to try to understand what’s causing this to occur? Thanks in advance.

cfleming21:06:31

So I suspect that this is caused by a lein plugin. Is this a project I can look at, or is it a work one? If it’s one I can’t see, which plugins is it using?

cfleming01:06:32

Ok, and how can I reproduce it? Just set up a REPL and run?

aratare01:06:19

Yep. Just right click the project and choose Run REPL

aratare01:06:33

One thing I’ve noticed is that this happens so randomly I can’t really give you a more concrete way to reproduce it. But of all the time that it did occur, it’s always caused by Run REPL.

aratare01:06:49

When I tried it a couple of months back, running lein repl in a terminal would somehow make this go away. When I tried it yesterday, the error persisted even after multiple lein repl.

cfleming01:06:08

Yeah, I just tried it and it worked fine. Do you have any plugins in your user.clj?

aratare01:06:26

Nope. I tend to keep things in my projects instead.

cfleming01:06:42

Do you have profiles selected in your run config?

aratare01:06:02

Actually yes. I was trying with dev yesterday.

cfleming01:06:34

When I try with dev, I get:

Error loading nrepl.server: Could not locate nrepl/server__init.class, nrepl/server.clj or nrepl/server.cljc on classpath.
Error loading complete.core: Could not locate complete/core__init.class, complete/core.clj or complete/core.cljc on classpath.
Syntax error (ClassNotFoundException) compiling at (/private/var/folders/__/8l603gyx7t15k39pyjk0c0xr0000gn/T/form-init1414398454383792338.clj:1:1190).
nrepl.server

cfleming01:06:34

But I don’t know what would provoke the exception.

cfleming01:06:36

I can try to track down why the error isn’t having more useful data output, but it would be really helpful to be able to reproduce it.

cfleming01:06:09

Ok, I fixed those errors by including nrepl and clojure-complete in the dependencies. Still no failure though.

cfleming01:06:11

Can you email me your log file to <mailto:[email protected]|[email protected]>? Help | Show log in Finder/Explorer

aratare01:06:16

This is what I’m experiencing at the moment.

aratare01:06:28

Sure will do now.

cfleming02:06:49

Thanks. So there’s nothing related in the logs unfortunately, but I think I see what the problem is with some of the exception data being lost.

cfleming02:06:50

Actually, looking at that line in Cloverage, it looks like it’s totally eating the exception data anyway.

cfleming02:06:59

I also don’t understand how that might get invoked from just starting a REPL.

aratare02:06:32

Correct me if I’m wrong, but when you select profiles in the Leiningen tab in Cursive, that’s just for compiling stuff right?

aratare02:06:54

Because I have test checked as one of the profiles

cfleming02:06:26

That’s for what gets synced to the project. If you’re running your REPL with Leiningen, it shouldn’t matter.

aratare02:06:55

Well other than that, I honestly have no idea why Cloverage would be invoked because I think I haven’t done any weird setup afaict.

aratare02:06:45

But if I intentionally invoke Cloverage with lein cloverage, it works fine 😅

cfleming02:06:38

Hang on, I’ll try to create a dev build with better logging, to see if that helps.

aratare02:06:41

Thanks a lot for looking into this 🙂