Fork me on GitHub
#cider
<
2017-01-09
>
vinnyataide01:01:43

how I clear those red square box after the debug?

dpsutton01:01:18

what red squares?

dpsutton01:01:30

ah, that means you still have the function instrumented

dpsutton01:01:36

just re-eval the function to remove them

dpsutton01:01:44

C-M-x on whatever defun

dpsutton01:01:57

there is a known bug that that font locking (the red squares) won't go away on the rpel

realtime17:01:24

If anyone can help me get this working it'd be awesome.

dpsutton17:01:41

are you using emacs?

dpsutton17:01:22

why are you adding the nrepl stuff to poms and everything?

dpsutton17:01:31

are you just trying to use cider to launch a repl?

realtime17:01:27

Since cider-jack-in doesn't work with maven, I'm using cider-connect

dpsutton17:01:03

I guess I don't really know what that means > cider-jac-in doesn't work with maven

dpsutton17:01:17

are you using the emacs-for-clojure setup?

realtime17:01:35

Sort of.. I jumped off it and configured my own. Its working fine with leiningen projects, but some projects use maven and they have weird directoyry structure (so I can't make then lein)

dpsutton17:01:37

I'm just wondering why you have a mention of 0.8.2

dpsutton17:01:50

looks like an old version of cider

dpsutton17:01:06

and then it not supporting those things sounds reasonable

realtime17:01:17

It is.. I tried 0.14 and 0.15-snpshot

realtime17:01:42

But leiningen keeps complaining and won't let me open a repl

dpsutton17:01:51

do you still have that lein profiles file laying around?

dpsutton17:01:00

it says to use cider-nrepl 0.8.x

realtime17:01:21

my current profile.clj is:

dpsutton17:01:54

remove that line then

dpsutton17:01:06

you definitely don't want cider 14 or 15 talking to cider-nrepl 0.8.2

dpsutton17:01:10

they should be the same value

dpsutton17:01:21

and CIDER now injects the correct cider-nrepl version

realtime17:01:30

My cider version is consistent

dpsutton17:01:41

what version of cider are you running

realtime17:01:48

I'm using 0.8.2

dpsutton17:01:33

i kinda don't know what to tell you then

dpsutton17:01:56

you're sure that you have CIDER 0.8.2 and cider-nrepl 0.8.2 installed

dpsutton17:01:23

i'd wipe out your ~/.m2/repository/cider dir and see that 0.8.2 is actually what you're running

dpsutton17:01:34

and then verify that the only cider code in emacs loaded is 0.8.2

realtime17:01:42

M-x cider-version says 0.8.2

dpsutton17:01:44

because you mentioned that you ran 0.14 and 0.15 for a bit

dpsutton17:01:50

how did you downgrade

dpsutton17:01:58

is it possible you've still got some elc's laying around?

realtime17:01:02

Deleted the package and installed the correct version

dpsutton17:01:00

does it work when you run versions 14 or 15?

dpsutton17:01:09

I'm just asking as 0.8.2 is over 2 years old

dpsutton17:01:52

and you've got a one year old clojure mode

realtime17:01:05

When i run version 14 I can't even run lein repl (it gives me a java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, compiling:(clojure/core/reducers.clj:56:21)

realtime17:01:12

same with 15

realtime17:01:25

I can update my clojure-mode

dpsutton17:01:35

you can't run lein repl?

realtime17:01:51

Not with version 14/15

dpsutton17:01:59

lein repl doesn't use any cider code that i'm aware of

dpsutton17:01:11

you're talking lein repl from a command line?

realtime17:01:19

That's whats confusing me

dpsutton17:01:21

that's completely independent of CIDER

dpsutton17:01:29

i think you've got something funky going on then

dpsutton17:01:44

what version of leiningen do you have?

dpsutton17:01:20

and what version of emacs are you in?

realtime17:01:00

lein version - 2.7.1

dpsutton17:01:13

> Sort of.. I jumped off it and configured my own. Its working fine with leiningen projects, but some projects use maven and they have weird directoyry structure (so I can't make then lein) can you run lein repl from projects that are working with CIDER right now?

realtime17:01:43

yea with CIDER 8.2 and cider-nrepl 8.2

realtime17:01:56

emacs version - 25.1.1

dpsutton17:01:02

lein repl is completely independent of cider version

realtime17:01:14

I can run lein repl

realtime17:01:29

as long as I have some cider-nrepl version in my profiles.clj

realtime17:01:44

Not 0.14 or 0.15 though

realtime17:01:15

So I just played around till I found a combination of CIDEr/nrepl that worked

dpsutton17:01:39

when you used 0.14 or 0.15, did you delete your lein profiles file?

realtime17:01:04

I made the file empty.. Do I have to explicitly delete the file?

realtime17:01:53

lemme try that

dpsutton17:01:09

but as far as I can tell, lein repl has zero dependency upon cider

dpsutton17:01:22

lein repl will work even if CIDER and emacs are missing from a machine

realtime17:01:46

alright.. let me try that and I'll respond with the results

realtime17:01:18

So I deleted cider 8.2 and installed cider 14

realtime17:01:26

I can run lein repl in the command line

realtime17:01:42

However cider-jack-in doesn't work in leiningen projects now

dpsutton17:01:56

what error are you getting?

realtime17:01:12

It gives me a multi line error in the minibuffer but when I try to read it it disappears

dpsutton17:01:37

you can go to the Messages buffer to see it in full

realtime17:01:39

clojure.main.main (main.java:37) error in process sentinel: Could not start nREPL server: clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, compiling:(clojure/core/reducers.clj:56:21) at clojure.lang.Compiler.analyzeSeq (Compiler.jav

dpsutton17:01:29

and from the same root directory you can start lein repl?

dpsutton17:01:17

what version of clojure are you using?

dpsutton17:01:16

I'm out of ideas for you then. I'm sorry

dpsutton17:01:34

can you see from the messages buffer how it's starting the lein repl?

dpsutton17:01:38

are you on a mac?

dpsutton17:01:53

how did you install java?

dpsutton17:01:15

checkout that last comment

dpsutton17:01:23

but check your java version

dpsutton17:01:28

apple java seems to be old?

realtime17:01:34

Yeah I need an old version (6) for work

realtime17:01:43

So this still doesn't really fix my maven problem.

dpsutton17:01:49

I'm out of my depth. I really don't know java well. sorry

dpsutton17:01:05

did you see the part about back porting the concurrency stuff?

realtime17:01:33

Yeah I'm going though that now

realtime17:01:53

Anyways thanks for the effort

dpsutton17:01:10

best of luck

dpsutton17:01:22

you could maybe raise an issue on github and get smarter people than me working on it 🙂

richiardiandrea19:01:24

[XPOST] I had time to rebase https://github.com/clojure-emacs/cider/pull/1751 if folks want to try it out

radon21:01:20

@realtime You can have more than one version of Java installed simultaneously. Not sure if that is suitable for your situation, though.

realtime21:01:00

I don't think so as the project needs to be on 6

radon21:01:55

I see, you need to work on a Clojure project that requires Java 6?

juhoteperi22:01:07

@realtime Re: the exception, you need to add [org.codehaus.jsr166-mirror/jsr166y "1.7.0"] dependency to the project if you need to use clojure.core.reducers on Java 1.6

realtime22:01:43

Thanks, but I don't think this addresses the issue.

dpsutton22:01:53

did you try it?

dpsutton22:01:18

the issue was you were getting some compiler issues because of missing classes. Doesn't this add in those missing classes for java 1.6?

realtime22:01:03

No, I'm still getting the same issue. I gave up on updating my cider version though since I am using an outdated java version

dpsutton22:01:37

sorry about that. I just don't even know how to keep helping you 😞

dpsutton22:01:59

the only other suggestion i would try is in a vanilla emacs and install cider

dpsutton22:01:10

so it didn't have any of the stuff from the emacs-for-clojure

realtime22:01:22

At this point it doesn't

dpsutton22:01:25

i worked with someone yesterday or the day before who was trying to update cider and it was throwing issues

realtime22:01:51

Yeah.. the issue is less with updating cider though than getting it to behave with maven projects.. sigh.. I guess using a repl without the middleware isn't the worst thing

richiardiandrea22:01:54

Has the cider completion code changed? I receive a (error "Not an nREPL dict object: ") in 0.15.0-SNAPSHOT

dpsutton22:01:46

cljs or clj?

dpsutton22:01:37

you've been following along with the fuzzy completion stuff, right?

dpsutton22:01:50

I'm not sure if any changes have made it in yet or not, but I don't think so

dpsutton22:01:01

can you make a minimum reproducing example?

richiardiandrea22:01:08

no I think they are not in yet

richiardiandrea22:01:20

I will try to investigate, maybe it is on my side only

richiardiandrea23:01:30

uhm, definitely something with the new cider-nrepl is broken there with ac-cider

richiardiandrea23:01:53

when I upgrade cider-nrepl it breaks

dpsutton23:01:24

i'm the last commit on cider-nrepl ha

richiardiandrea23:01:06

lol, no maybe it is mine, I was working on a patch 😄 it is unrelated but who knows 😄

richiardiandrea23:01:31

@dpsutton weirdly enough, my patch works perfectly, but the old conf that I had before doesn't anymore (I am so happy to be a software dev! 🤕)