Fork me on GitHub
#cider
<
2016-11-22
>
echristopherson00:11:22

Doesn't look like it does.

echristopherson04:11:12

OK, I'm confused again... I was playing with the various grimoire commands, and managed to open up in the browser the page for ->

echristopherson04:11:58

That page was fully styled. But now, no matter what command I try, I get something (in the browser) that looks like just preformatted plain text.

echristopherson04:11:10

How did I get the original styled HTML page?

mpenet13:11:41

installed emacs on a new machine and I got cider-add-to-alist: Invalid function: (cons (assoc car alist))

mpenet13:11:16

perils of living on the bleeding edge I think, I am running melpa (unstable) and nrepl latest snapshot

dpsutton13:11:00

did you get that on cider-jack-in or in startup?

mpenet13:11:07

tools.nrepl "0.2.12" cider-nrepl "0.15.0-SNAPSHOT" and fresh cider from melpa

dpsutton14:11:18

which version of emacs are you running?

dpsutton14:11:27

one of the latest commits is dropping support for 24.3 apparently

mpenet14:11:39

well, should work

dpsutton14:11:15

lots of adding subr-x.el

mpenet14:11:37

yeah the error make it sound like an emacs dependency issue more than a cider problem per say

mpenet14:11:51

I think I have emacs25 on the same machine, I ll try

mpenet14:11:15

same error

dpsutton14:11:23

i just updated my local git repo to head and i'm opening up a repl

dpsutton14:11:36

damn. it worked (R) for me

mpenet14:11:48

nuking .emacs.d/elpa and retesting

dpsutton14:11:18

this seems to be the offending code here but its been around since March

mpenet14:11:50

same issue with clean elpa

dpsutton14:11:47

ah, can you try something for me?

dpsutton14:11:08

navigate to cider-util.el in your .emacs.d/elpa structure

dpsutton14:11:18

the cider code itself

dpsutton14:11:22

or even better

dpsutton14:11:48

C-h F [ret] if-let

dpsutton14:11:06

see if if-let is defined in your emacs

mpenet14:11:08

it's there

mpenet14:11:16

I can eval (require 'subr-x)

dpsutton14:11:16

back to the drawing board

mpenet14:11:19

i ll check if-let

dpsutton14:11:46

ah! i remember some bugs where people introduced their own version of if-let before it was baked into emacs

dpsutton14:11:03

suspicion, a package you are using still has their own implementation that is inferior for general use but only what they need in their own use case

mpenet14:11:24

i ll grep my elpa

dpsutton14:11:31

so, to test this theory, C-h C-f [ret] if-let will navigate to somewhere besides subr-el

dpsutton14:11:42

as if-let is defined in another package

mpenet14:11:08

I have refs to --if-let and -if-let but no if-let other than in cider stuff

dpsutton14:11:36

did navigating to the source of if-let take you to subr in emacs?

mpenet14:11:57

I didn't try that

mpenet14:11:32

it might be the issue, but that's odd

mpenet14:11:59

the config is here if curious: https://github.com/mpenet/emax

mpenet14:11:12

going to reinstall emacs from scratch, I have a mess of versions on this machine

mpenet14:11:09

and it works on a fresh emacs25.x

dpsutton14:11:43

that's a bummer you had to go through all of that

dpsutton14:11:06

happy coding!

benedek15:11:54

just fyi @dpsutton @mpenet cider’s own build (master HEAD) fails with the same error

dpsutton15:11:03

i pulled it this morning and then jacked in

dpsutton15:11:10

maybe i need to blow away the .ecl files

dpsutton15:11:17

thanks for the heads up @benedek

benedek15:11:44

i don't fully understand what the error is tho tbh

benedek15:11:10

is if-let just not there on 24.5?

benedek15:11:09

bit baffled here… 😕

dpsutton15:11:04

benedek, is it failing for you?

dpsutton15:11:12

i updated to master/head and it was fine

dpsutton15:11:16

but i'm building emacs from source

dpsutton15:11:19

and tracking master

benedek15:11:54

make test fails when i try to build cider locally

benedek15:11:05

after (!!) i cleaned and reinstalled deps with cask

dpsutton15:11:15

which tests fail?

benedek15:11:27

eg remove .cask/ dir and run $ cask

benedek15:11:09

In end of data:
cider-apropos.el:203:1:Warning: the following functions are not known to be
    defined: if-let, results
Wrote /Users/benedek.fazekas/projects/cider/cider-apropos.elc
cask exec buttercup -L .
Warning: Lisp directory `/usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/emacs-parallel': No such file or directory
Warning: Lisp directory `/usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/emacs-parallel': No such file or directory
Invalid function: (cons (assoc car alist))
make: *** [test] Error 255

benedek15:11:20

i think this is compilation phase

dpsutton15:11:37

well that explains that

dpsutton15:11:56

in emacs, can you try C-h C-f [ret] if-let

benedek15:11:05

you mean C-h f?

benedek15:11:20

C-h C-f gives me emacs faq

mpenet15:11:47

you can do a M-x describe-function

mpenet15:11:13

then if-let, should tell you : if-let is a Lisp macro in ‘subr-x.el’. [...]

benedek15:11:35

well, there is no such thing as if-let according to my emacs. :wtf:

dpsutton15:11:11

i'm running tests right now. all mine pass

dpsutton15:11:18

looks like the use of if-let is premature

benedek15:11:21

what is your emacs version @dpsutton ?

benedek15:11:29

i mean if-let is used all over cider all the time...

benedek15:11:01

probably there are some emacs builds around with wrong subrx version?!

mpenet15:11:42

no idea what happened on my end tbh. I had 3 versions of emacs installed, I suspect a mess of mixed emacs dependencies

mpenet15:11:00

just nuked the whole thing and installed the latest snapshot

mpenet15:11:17

I should have done that a long time ago anyway

dpsutton15:11:37

GNU Emacs 26.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9) of 2016-11-20

benedek15:11:02

ha that is real bleeding edge! 😄

mpenet15:11:29

GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2016-10-26

mpenet15:11:47

dpsutton do you have flickers sometimes on magit status?

dpsutton15:11:05

i'm tracking master though so i'm not sure if the version reflects where I actually am

dpsutton15:11:11

don't think so

dpsutton15:11:14

or not that i've noticed

mpenet15:11:31

actually it only does it the first time I magit c-g on a repo

mpenet15:11:51

well it's barely noticeable

dpsutton15:11:52

so if-let is used quite a bit throughout cider

dpsutton15:11:00

and recently cider-compat.el was removed

dpsutton15:11:13

it looks like the assumption that emacs.24.4 did not need this was incorrect

benedek15:11:19

strangely my cider works fine

benedek15:11:29

i mean i can jack in etc

dpsutton15:11:42

oh i thought you said you couldn't

dpsutton15:11:50

i'll bet you have a package that defines its own version of if-let

benedek15:11:53

i am also on latest master (`20161121.312`)

dpsutton15:11:55

can you navigate to the source of it?

benedek15:11:30

surely but afaik dash.el does that but it is namespaced as -if-let and —if-let

benedek15:11:35

but i will dblcheck

dpsutton15:11:22

also, can you check if you have a cider-compat.elc in your cider directory?

dpsutton15:11:29

or possibly just .el

dpsutton15:11:06

what does M-x describe-function [ret] if-let return?

benedek16:11:21

i can’t. no-match

dpsutton16:11:35

i can't imagine how cider works for you then haha

dpsutton16:11:43

can you navigate to cider-util.el?

benedek16:11:07

same here...

dpsutton16:11:42

or specifically you can go to the source of cider-add-to-alist

dpsutton16:11:54

actually i'm just totally stumped

dpsutton16:11:00

there are tons of if-lets in the source

benedek16:11:03

i have string-trim tho which is defined in subr-x too

benedek16:11:33

so i have a version of subr-x perhaps not the right version?! or something weird

benedek16:11:06

so my local subr-x in 24.5/lisp/emacs-lisp deffo does not have if-let. only a bunch of string related and hashtable related functions

dpsutton16:11:44

weird. those went into emacs on june 29, 2014

benedek16:11:15

you mean if-let?

benedek16:11:55

yup looking at the same thing

benedek16:11:18

i use this osx build tbh

benedek16:11:11

wonder if that is the culprit?! on the other hand the cider travis build (failing the same way) uses an ubuntu image

dpsutton16:11:49

where are you seeing the cider travis build failure?

benedek16:11:43

this is the raw log from the latest master build: https://travis-ci.org/clojure-emacs/cider/builds

dpsutton16:11:16

there it is

dpsutton16:11:26

if-let doesn't exist, so it doesn't know that's a let binding

dpsutton16:11:37

and so (cons ...) looks bad

benedek16:11:47

it is just WEIRD

dpsutton16:11:53

super weird

dpsutton16:11:18

what's your emacs version benedek?

benedek16:11:00

GNU Emacs 24.5.1 (x86_64-apple-darwin14.4.0, Carbon Version 157 AppKit 1348.17) of 2016-01-04

dpsutton16:11:35

so i know there was a long running branch for emacs 25. I wonder if even though subr was updated a long time ago it was never added to 24.x

dpsutton16:11:48

i think as it stands CIDER is only compatible with emacs 25+

dpsutton16:11:01

current workaround is to run CIDER from elpa-stable rather than elpa

benedek16:11:10

those if-lets were added to cider in like march tho

benedek16:11:32

not really working for me as i have build failures in clj-refactor because of this 😉

dpsutton16:11:39

but cider-compat.el was just removed

dpsutton16:11:45

guess what was included in that i bet

dpsutton16:11:04

that file was removed thinking it dropped support for 24.3. but it actually dropped support for 24.x

dpsutton16:11:44

is my suspicion

benedek16:11:10

you are right

benedek16:11:41

perhaps some elc of this (cider-compat) is still lurking around somewhere in my emacs that is why it kinda works...

benedek16:11:45

or i am just “lucky” enough not to hit those parts of cider using if-let

dpsutton16:11:54

not a chance

dpsutton16:11:05

it uses a if-let in getting the dependencies for jacking in

theeternalpulse16:11:10

thanks. I just wanted to keep up with the cider issues, saw it referenced on gitter

dpsutton16:11:20

i think you still have a .elc file in the directory

dpsutton16:11:37

since elisp is such a lookup this name when you need it, you happen to have it

benedek16:11:19

yeah right. i've actually written that bit 😄

dpsutton16:11:35

haha don't delete that .elc

dpsutton16:11:48

that's why it shows in the test logs

dpsutton16:11:58

those machines are provisioned in vagrant so they can have no remnants from previous builds

benedek16:11:46

i reinstalled cider yesterday (and i do delete previous version before installing new) so i don’t have an elc strangely

benedek16:11:53

anyway surely i have it somewhere 😄

leppert18:11:51

When booting up a sibling ClojureScript REPL, sometimes a session returns every evaluated form as a string ex: cljs.user> (+ 1 1) => “2” whereas other times it properly returns it as cljs.user> (+ 1 1) => 2. I’ve tried to isolate the problem, but just when I think I have it cornered it evaluates correctly (or incorrectly) the next time I jack in. Has anyone else had this problem? Any hints?

echristopherson23:11:50

OK, I'm confused again... I was playing with the various grimoire commands, and managed to open up in the browser the page for -> [10:43] That page was fully styled. But now, no matter what command I try, I get something (in the browser) that looks like just preformatted plain text. [10:44] How did I get the original styled HTML page?