Fork me on GitHub
#cursive
<
2015-11-19
>
cfleming01:11:47

I’m planning a better semi-automatic solution for this soon.

tony.kay04:11:34

@cfleming: Ah, ok, thanks! Ghetto is better than nothing

roelof17:11:53

Anyone a idea what is here the problem :

snowell18:11:10

@roelof slurp is looking either in src/core_functions (alongside core.clj) or resources/, and the file lives in neither place

snowell18:11:01

Either change filename to an absolute path, or a correct relative path

roelof18:11:38

I moved it into resources but the same error message

snowell18:11:11

Try a relative path

snowell18:11:51

(slurp “../../../resources/suspects.csv)

snowell18:11:09

Or just put the absolute path, since I’m sure this isn’t a production application 😄

dmi3y18:11:04

Hi guys. I noticed that with the latest Cursive version, REPL takes an order of magnitude longer to start. It says it’s calculating classpath. Subjectively, the REPL start used to be way faster before for the same project. Has anyone else noticed that?

roelof18:11:44

the relative path does not work

roelof19:11:07

also the absolute path : (slurp "c://Users/rwobb/IdeaProjects/resources/suspects.csv")

snowell19:11:09

@roelof That’s not the absolute path. It doesn’t have the project directory in it. You’re getting a FileNotFoundException, so the file isn’t where you’re telling slurp to look

roelof19:11:00

oke, I will change it

roelof19:11:03

thanks, changed it to (slurp "c://Users/rwobb/IdeaProjects/core_functions/resources/suspects.csv") worked

cfleming19:11:38

BTW it’s been brought to my attention that the use of the word “ghetto” to imply something that’s not of good quality can sound pretty offensive, in particular in the US. My apologies, it doesn’t have the same connotation where I’m from and I certainly didn’t intend anything like that.

cfleming19:11:59

@dmi3y: A few people have commented that it seems to take longer to start, but I’ve timed it at least on my machine and the time is generally the same. It’s actually calling the same code (in a slightly different way, admittedly), so I don’t think there should be a big difference.

cfleming19:11:20

@dmi3y: But if you’re literally seeing an order of magnitude difference then that sounds like a bug.

cfleming19:11:32

What I think usually happens is that your attention is drawn to it by the progress bar, and additionally that now happens before the REPL window is opened, which makes it feel longer till anything happens.

dmi3y19:11:56

It could be, yes simple_smile

dmi3y19:11:25

@cfleming: I’ll time it against a previous version of Cursive on which I think it was faster.

cfleming19:11:20

@dmi3y: Thanks. I’d be very interested to know your results.

cfleming19:11:05

I’m actually considering a change which would cache the REPL classpath in case nothing has changed, but that can only be done when there are no snapshots involved.

cfleming19:11:17

That would make subsequent startups very fast, though.

dmi3y19:11:26

Sounds cool!