Fork me on GitHub
#cider
<
2017-10-27
>
h.elmougy17:10:46

WARNING: CIDER's version (0.8.1) does not match nider-nrepl's version (0.15.1)

h.elmougy17:10:52

how to update cider

dpsutton17:10:14

do you have a lein-profiles.clj file by any chance?

dpsutton17:10:30

that CIDER version is from 2014. not sure why you have a reference to 0.8.1 anywhere

dpsutton17:10:45

this problem normally comes up when people are using the brave clojure setup but i think its normally 0.8.2

dpsutton17:10:46

although this seems like the backwards version. Do you know how to use the package manager in emacs, @h.elmougy

dpsutton17:10:28

M-x list-packages search for CIDER, hit u for upgrade when point is on the same line, and then x for execute

h.elmougy17:10:19

I got an error after installing cider. I fed up of this. do you know any guide to install a fresh version of cider ?

h.elmougy17:10:47

Other than the guide found in cider's guide

dpsutton17:10:42

Can you describe what steps you followed?

dpsutton17:10:10

Because if you installed it with the emacs package manager it should largely "just work"

h.elmougy17:10:55

I already did but paredit and clojure-mode didn't work

h.elmougy17:10:08

I can't install paredit

h.elmougy17:10:34

and also the theme

dpsutton17:10:00

What does a theme have to do with cider. I'm not sure what you're attempting to do

dpsutton18:10:57

@h.elmougy i'm back from lunch. can you describe what you're doing? it seems like you are doing more than just installing CIDER. are you working on getting a full emacs install up and running?

dpsutton18:10:10

i can help out a little bit if you want some help

h.elmougy19:10:46

@dpsutton already installed CIDER by I want to paredit and the theme installed from brave and true guide but i can't get it to work

dpsutton19:10:03

ah so you are following the brave and true guide

dpsutton19:10:13

did brave and true tell you to put a profiles.clj file?

dpsutton19:10:29

but honestly, the brave and true guide should not be followed for setting up cider. they give you a repo to clone that has compiled emacs lisp byte code and pegs you to a three year old version of CIDER. I think there are changes in the bytecode interpreter and things get really wonky with the checked-in .elc files.

dpsutton19:10:00

give that setup a go. i think you'll find things work just fine. if you like vim keybindings spacemacs is for sure the way to go

dpsutton19:10:20

unless i'm misreading what youve said

h.elmougy19:10:30

yes and i don't want to follow the guide I want to install all the components myself to upgrade them and understand what every component is actually doing

dpsutton19:10:44

ok. so you didn't clone the brave repo?

h.elmougy19:10:56

No I did not

dpsutton19:10:58

ok i'm with you now

h.elmougy19:10:06

I installed cider now

h.elmougy19:10:23

I need syntax highlight plugin and paredit

dpsutton19:10:47

so what is paredit saying when you try to install that?

h.elmougy19:10:05

let me copy this

h.elmougy19:10:46

I am using this

dpsutton19:10:47

so is it working?

h.elmougy19:10:58

no it is not

dpsutton19:10:07

ok. and what is the symptom that it is not working

h.elmougy19:10:14

what should i do to install paredit

dpsutton19:10:27

what makes you think it is not isntalled

dpsutton19:10:33

what is an indication of error

dpsutton19:10:33

but in general, you should be able to M-x install-package [ret] <package-name>

h.elmougy19:10:30

let me install paredit-mode from install-package command to see

h.elmougy19:10:52

I got no match

dpsutton19:10:15

are you looking for paredit or paredit-mode

dpsutton19:10:30

also, try M-x list-packages to ensure that you have a fresh copy of all of the packages available

h.elmougy19:10:33

(add-to-list 'package-archives '("melpa-stable" . "http://melpa-stable.milkbox.net/packages/")) (add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/"))

h.elmougy19:10:54

do I need any extra package repositories ?

dpsutton19:10:38

and do it from the graphical interface with M-x list-packages

h.elmougy19:10:52

yes I am doing this

dpsutton19:10:47

(add-to-list 'package-archives
             '("melpa" . "") t)

dpsutton19:10:05

but the melpa stable should be fine for you as well

h.elmougy19:10:52

I got emacs freezed

dpsutton19:10:36

i think marmalade has fallen out of use. try without that

dpsutton19:10:52

remove this line from your init:

(add-to-list 'package-archives
             '("marmalade" . ""))

dpsutton19:10:06

and replace it with the melpa one i linked

dpsutton19:10:14

i think this should give us some progress

h.elmougy19:10:44

Ok let me check

h.elmougy19:10:07

with no highlights on closing parans

h.elmougy19:10:13

Yes it should be installed now but still able to delete parans

dpsutton19:10:24

have you turned the mode on?

dpsutton19:10:41

highlighting closing parens is a different functionality than paredit

h.elmougy19:10:49

how? execuse my weak knowledge on this

h.elmougy19:10:31

how to turn the mode on

dpsutton19:10:34

M-x paredit-mode should turn it on

h.elmougy20:10:03

yes this works

h.elmougy20:10:31

now which plugin should i use for highlights and theme?

dpsutton20:10:16

theme is pretty personal across users so just google emacs themes and see what's out there. i'm not sure what you mean by highlights but there's show-paren-mode that i use

h.elmougy20:10:11

yes this works also thank you very much for help @dpsutton

h.elmougy20:10:18

I got everything now

dpsutton20:10:19

awesome! for sure

dpsutton20:10:39

there's lots of good stuff out there. the think i linked earlier, emacs prelude has lots of super useful helper functions

dpsutton20:10:11

the maintainer of emacs is a super cool guy and has his dot emacs here: https://github.com/jwiegley/dot-emacs

dpsutton20:10:22

peruse, reuse, create and have fun

h.elmougy20:10:04

my last question. can i have .emacs.el and init.el files together?

dpsutton20:10:54

usually best to make a directory out of it and organize it.

dpsutton20:10:03

but this will have way more information that i know

dpsutton20:10:41

i used a premade one and extended it as i needed. there's gonna be lots of stuff you will recreate and its awesome if you do. you'll learn emacs lisp: the most widespread used lisp 🙂

h.elmougy21:10:07

playing around with prelude for a while. it is awesome. thanks @dpsutton

dpsutton21:10:27

yeah. it's really well done

dpsutton21:10:32

same person as the maintainer of CIDER too

dpsutton21:10:50

it's nice to learn how its done, and then its nice to have lots of the little niceties done for you

h.elmougy22:10:37

Yes I'm having a look at emacs lisp to learn how these great stuff actually work

dpsutton22:10:27

awesome. it's got its plusses and minuses. great debugger, one of the best lisp environments. enjoy coding your environment