Fork me on GitHub
#cursive
<
2019-08-29
>
wilkerlucio00:08:30

hey, does someone here got success trying to use REBL with Cursive? I got the setup running, when I eval an expression it works, but when I load any file (even if its a very simple one) the REPL crashes

shaun-mahood02:08:35

@wilkerlucio Yeah, it’s working for me - what version of IntelliJ are you using?

Empperi08:08:15

facing a bug in Cursive when using https://github.com/s3-wagon-private/s3-wagon-private

10:53	Error resolving dependencies for my-project-name:1.0.0-SNAPSHOT
			java/sql/Timestamp
			java.sql.Timestamp

Empperi05:08:17

Thanks! I was kinda guessing you would already be aware of this problem 👍

Empperi08:08:14

It gives me the above error and then the whole project is not found anymore as a clojure project (eg. cannot run REPL or anything)

Empperi08:08:10

This is... Annoying

Empperi08:08:30

lein deps work fine from command line

Empperi08:08:04

If I comment out the plugin then Cursive complains it cannot find the dependency which is in my s3 bucket even though it is already available locally

felipethome13:08:16

Hi! I’m trying to import a deps project using intellij 2019.2 and cursive EAP and I’m getting a NullPointerExeception. Does any one knows what might be going wrong?

4
felipethome14:08:46

Just needed to update to 2019.2.1

manutter5114:08:14

IntelliJ 2019.2 generally has not been kind to Cursive, although the 2.1 release fixes some of the issues. There’s still some outstanding bugs, so if you want the best possible deps compatibility, your best bet right now is 2018.3.x. The 2019 series is supposed to have a 2.2 release soon that should clean up the remaining issues.

wilkerlucio14:08:58

@shaun-mahood intellij on 2019.1.3, the problem doesn't seem related to REBL, if I try to use any REPL with clojure.main and deps, when I load a file the REPL crashes @cfleming

shaun-mahood14:08:58

@wilkerlucio I'm using the same version without any issues, so hopefully you can get it working. Here are the REPL settings I'm using in case that helps

wilkerlucio14:08:04

my setup is very similar:

wilkerlucio14:08:13

and this is what happens when I try to load a file:

wilkerlucio14:08:20

Clojure 1.10.0
user=> (+ 2 4)
6
user=> (load-file "/Users/wilker.lucio/Development/pathom/src/com/wsscode/common/combinatorics.cljc")
Syntax error (FileNotFoundException) compiling at (combinatorics.cljc:1:1).
Could not locate nav__init.class, nav.clj or nav.cljc on classpath.
user=> Error evaluating - class java.net.SocketException: Socket closed

Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

shaun-mahood14:08:38

Have you tried it with any other projects? I'm wondering if there's something specific to pathom (or that .cljs file) that is causing you trouble.

shaun-mahood14:08:06

I'm going to see if I can get a pathom repl working on my machine.

wilkerlucio14:08:01

thanks, I'll check other project here, I also tried loading simple clj files from pathom but got the same result

wilkerlucio14:08:27

yeah, I just got that working in a different project, maybe some dep of pathom is causing trouble

wilkerlucio14:08:26

thats strange, even if I remove all deps from pathom, when I try to load a file the REPL keeps crashing

shaun-mahood14:08:06

I think it might be something to do with the way the deps.edn file is set up - when I loaded the project I get the message Error resolving /home/smahood/Documents/pathom: Coordinate type :mvn not loaded for library org.clojure/clojure in coordinate {:mvn/version "1.10.0"}. When I added clojure into the main :deps section I was able to start the REPL without a problem.

wilkerlucio14:08:05

humm, I have different results, even adding clojure to the main section, I still get the same error

shaun-mahood14:08:28

Here are my project import settings - I always use tools.deps directly as my machine doesn't seem to work when I try to use the CLI tools

wilkerlucio14:08:44

did you tried loading a file from intellij?

shaun-mahood15:08:00

Here are the steps I followed to open it - not sure if they make a difference or not. File -> Open -> deps.edn -> Open as Project -> enter settings and hit Ok -> Yes to overwrite project file -> Delete Existing Project and Import

wilkerlucio15:08:08

I'm just trying to make sure you can load files with that setup

wilkerlucio15:08:14

because the REPL opens and works here, until I try to load a file

wilkerlucio15:08:55

using Load file in REPL

shaun-mahood15:08:00

Oh yeah, sorry I misunderstood. I am able to load that combinatrics.cljc file into the repl without any problems. I haven't tried with REBL though.

wilkerlucio17:08:04

I figured I can get around by avoding using Load file in REPL, instead I select the whole file and use send top form, that sends all of then, which works quite the same as loading the file, just one annoying step

shaun-mahood17:08:55

That's pretty weird - glad there's a workaround for you but it sure doesn't seem like that should be happening.

wilkerlucio17:08:55

yeah, I wonder if @cfleming has other ideas

cfleming19:08:50

@wilkerlucio I have some family stuff on this morning but will try to look this afternoon.

wilkerlucio19:08:59

@cfleming thanks! just to clarify, to me the bug doesn't seem to be about REBL, but about clojure.main and Load file in REPL. I guess you may be able to reproduce by: 1. Clone pathom 2. Import 3. Run a REPL using deps + clojure.main 4. Try to load a file in REPL using Load file in REPL

wilkerlucio19:08:17

even without REBL I have consistent REPL crash when I do that