Fork me on GitHub
#cider
<
2016-01-20
>
malabarba01:01:17

I know some people are in favor of 2-spaces everywhere

malabarba01:01:37

But I don't think we can ever reach a consensus

malabarba01:01:49

it just boils down to preference now

malabarba01:01:29

To me, a function form is just a list where the head happens to be a function

malabarba01:01:47

In other lisps (LISP-2) it even makes a little sense to make the arguments look different from the function; because the arguments are resolved by value, while the function is resolved by it's function-binding

malabarba01:01:09

But Clojure is a LISP-1, so there's no difference between the arguments and the function itself.

malabarba01:01:22

The head of the list can be a symbol (which is resolved by value just like all the args), or it can be a map, a vector, a keyword, etc

malabarba01:01:26

Macros are different. If a var is a macro you can't take its value, so it is special. A macro form is not just a list with a macro at the head.

cfleming04:01:02

I’ve installed CIDER to try to reproduce an issue that a user is having when switching from CIDER to Cursive.

cfleming04:01:24

I can’t reproduce it, but I need to make sure that compliment is being used for the completions.

cfleming04:01:29

What’s the best way to do that?

cfleming04:01:09

I have auto-complete mode installed and working (I think)

cfleming04:01:17

(I have an AC in my mode line)

cfleming04:01:56

But I get no completion when typing, and even if I M-x auto-complete I can’t reproduce the issue. How can I be sure it’s using compliment?

rickmoynihan10:01:07

I'm getting the same error as reported here in emacs/cider/cider-nrepl 0.10.0 - on connection when running M-x cider-connect http://clojurians-log.mantike.pro/cider/2015-12-21.html Has anyone else seen it, and is there a known fix/resolution?

rickmoynihan10:01:42

ahh just seen 0.10.1 was released - upgrading...

rickmoynihan10:01:46

Ok after upgrading I still get the error.... The stack trace with M-x toggle-debug-on-error is:

rickmoynihan10:01:03

And in my REPLs terminal:

bozhidar12:01:10

@cfleming: we’ve been using compliment for ages now

bozhidar12:01:33

company and ac-mode are just visual front-ends

bozhidar12:01:40

what exactly is the issue in question?

bozhidar12:01:53

@malabarba: I’d post your remarks here as well

bozhidar12:01:58

I’m open to making this behaviour configurable in clojure-mode in the interest of cross-tool collaboration

bozhidar12:01:22

but I definitely don’t understand how making code like

bozhidar12:01:08

(filter
 even?
 (range 1 10))

bozhidar12:01:30

(filter even?
        (range 1 10))

bozhidar12:01:55

inconsistent is a good idea

bozhidar12:01:20

if you’re using 2-space indent with no args on the first line

bozhidar12:01:33

IMO you should be using 2-space indent everywhere

bozhidar12:01:41

if this is what you’re doing - great

bozhidar12:01:54

I asked a question on github and didn’t really get an answer

malabarba12:01:40

@cfleming cider will do completion out of the box with company-mode, but I think auto-complete-mode requires a bit more setup

malabarba12:01:07

So your system is probably not using compliment yet.

malabarba12:01:42

I've never used auto-complete-mode with cider, but I believe there are instructions on the readme

bozhidar13:01:44

@malabarba: even with the built-in Emacs completion you’ll still be using compliment

malabarba14:01:46

never mind me then simple_smile

cfleming20:01:01

It’s a bug in the Cursive debugger, but the only person who can reproduce it reliably sees it with compliment as described in those comments.

cfleming20:01:49

I must have something set up incorrectly, tab doesn’t complete anything for me.

bozhidar20:01:47

yes, it wouldn’t out of the box

bozhidar20:01:07

if you’re a Mac user it’s M-Tab

bozhidar20:01:13

but most users have

bozhidar20:01:54

(setq tab-always-indent ‘complete)

bozhidar20:01:09

which makes tab do completion if the indentation is correct

cfleming21:01:55

@bozhidar: I’ll try that, thanks

cfleming22:01:01

@bozhidar: So if I get this:

Possible completions are:
defmacro (clojure.core) <m>
defmethod (clojure.core) <m>
defmulti (clojure.core) <m>

cfleming22:01:08

Then that’s coming from compliment?