admin-announcements

Announcements from the Clojurians Admin Team (@U11BV7MTK @U077BEWNQ @U050TNB9F @U0ETXRFEW @U04V70XH6 @U8MJBRSR5 and others)
2016-01-18T09:10:44.004170Z

What editor do you guys use for clojure? I'm using spacemacs with the clojure default but its hard to evaluate in the repl, and just does in the bottom buffer.

shanekilkelly 2016-01-18T09:11:26.004171Z

@calmwinds: spacemacs here, have yet to find anything better.

2016-01-18T09:11:33.004172Z

partly lighttable, partly intellj with cursive. Depends on what I need to do

shanekilkelly 2016-01-18T09:12:24.004173Z

cursive is a no-go for me because intellij has long-standing bugs with handling non-US/Qwerty keyboard layouts

cfleming 2016-01-18T09:13:46.004174Z

@shanekilkelly: Really? Do you have a link to an issue? I know there are occasional problems on Linux, but generally non-US keyboards work fine. I used one for ages.

shanekilkelly 2016-01-18T09:13:57.004175Z

https://youtrack.jetbrains.com/issue/IDEA-63779

cfleming 2016-01-18T09:14:06.004176Z

That was fast :simple_smile:

shanekilkelly 2016-01-18T09:14:13.004177Z

I was just looking it up :simple_smile:

shanekilkelly 2016-01-18T09:14:39.004178Z

It’s been open for five years with no sign of being fixed, affects dvorak/swedish/german/etc in various ways

shanekilkelly 2016-01-18T09:14:51.004179Z

and there’s a bunch of related issues linked to it.

shanekilkelly 2016-01-18T09:15:15.004180Z

until they sort that out, I (and a bunch of other people) can’t even evaluate it for use.

cfleming 2016-01-18T09:16:10.004181Z

Isn’t it a matter of just rebinding the actions, though? I mean, it’s annoying but it doesn’t seem like a deal breaker. Or are there combinations that just don’t work?

shanekilkelly 2016-01-18T09:17:08.004182Z

I think there are combos that don’t work anyway. I’ve tried rebinding with not much luck. they’re using the wrong API to listen for keystrokes, so I think some information can be lost

shanekilkelly 2016-01-18T09:17:38.004183Z

plus, I can’t reasonably rebind the whole set of shortcuts, and test that they work, before even getting to evaluate the usefulness of the tool.

cfleming 2016-01-18T09:18:19.004184Z

It looks like a JDK bug according to the comments. There might be some hope then since JetBrains are now producing their own JDK in order to fix a lot of these bugs that Oracle refuses to do anything about.

shanekilkelly 2016-01-18T09:18:25.004185Z

anyway, not really a comment on cursive itself, just pointing out intellij as a platform has some issues :simple_smile:

cfleming 2016-01-18T09:18:48.004186Z

Sure, I understand, just trying to understand the problems people are having.

shanekilkelly 2016-01-18T09:19:06.004187Z

i think some of the fault is on intellij though, I mean, no other java-based app on OSX is affected by the same problem.

shanekilkelly 2016-01-18T09:19:13.004188Z

Eclipse works fine

cfleming 2016-01-18T09:19:26.004189Z

Right, but Eclipse doesn’t use AWT

shanekilkelly 2016-01-18T09:19:30.004190Z

true

cfleming 2016-01-18T09:19:48.004191Z

Looking at that, any Swing app will suffer from the same problem.

shanekilkelly 2016-01-18T09:20:07.004192Z

maybe it will get fixed this year, now that they’re shipping their own jdk.

cfleming 2016-01-18T09:20:41.004193Z

Yeah, fingers crossed. I see in the comments, it’s not just a matter of rebinding, since IntelliJ will show incorrect shortcuts in the menus.

shanekilkelly 2016-01-18T09:20:57.004194Z

yup.

shanekilkelly 2016-01-18T09:21:12.004195Z

oh well, we can only wait :simple_smile: until then I’ll stick with spacemacs

shanekilkelly 2016-01-18T09:21:37.004196Z

for all its flaws, it generally does the right thing when I press a key 😛

cfleming 2016-01-18T09:23:08.004197Z

Or at least does the wrong thing consistently :simple_smile:

shanekilkelly 2016-01-18T09:23:16.004198Z

indeed :simple_smile:

shanekilkelly 2016-01-18T09:24:06.004199Z

nah, in all seriousness, spacemacs is very, very good. especially for someone with vim skills who wants a not-vim editor.

2016-01-18T09:24:34.004200Z

it definitely seems like it, the color theme thats out of the box is great too.

shanekilkelly 2016-01-18T09:24:56.004201Z

I really like the tommorrow-night theme

shanekilkelly 2016-01-18T09:25:08.004202Z

I think you need to enable themes-megapack to get it though

jaen 2016-01-18T09:26:06.004203Z

Interesting, I have pl keymap in Linux and didn't really notice any problems with shortcuts in Cursive. I don't know many by heart though, so maybe there' that.

shanekilkelly 2016-01-18T09:26:19.004206Z

I think the bug only affects OSX

slotkenov 2016-01-18T09:55:06.004207Z

Looks interesting, haven’t heard of spacemacs before. I’m using vim now.

jimmy 2016-01-18T09:55:47.004208Z

spacemacs is like oh-my-zsh for vim user who wants to switch to emacs

slotkenov 2016-01-18T09:56:43.004209Z

I can’t seem to get the cljs-dev-tools to work. Keep getting Exception in thread "main" java.io.FileNotFoundException: Could not locate devtools/core__init.class or devtools/core.clj on classpath

slotkenov 2016-01-18T09:57:13.004210Z

I’m using oh-my-zsh @nxqd :simple_smile:

jaen 2016-01-18T09:57:19.004211Z

@slotkenov: how are you including it?

slotkenov 2016-01-18T09:57:40.004212Z

[devtools.core :as devtools]

agile_geek 2016-01-18T09:57:44.004213Z

Spacemacs has a decent starting set up for Emacs worshipers too but I found I spent all my time in Holy mode and missed my own key bindings so I stole stuff from spacemacs and put it in my emacs config.

jaen 2016-01-18T09:57:49.004214Z

Ah

jimmy 2016-01-18T09:57:55.004215Z

@agile_geek: same here 😄

jaen 2016-01-18T09:58:03.004216Z

Are you doing it in a clj file perchance?

slotkenov 2016-01-18T09:58:19.004217Z

yes

slotkenov 2016-01-18T09:58:24.004218Z

Shouldn’t I

jimmy 2016-01-18T09:58:26.004219Z

@agile_geek: I'm still finding my way to be more effective with slurp and barf in emacs while editing lisp.

jaen 2016-01-18T09:58:36.004220Z

Hah, that's why. It's a Clojurescript library, so you can't use it in Clojure.

jaen 2016-01-18T09:58:51.004222Z

It should be working in a cljs file no problem.

slotkenov 2016-01-18T09:58:52.004223Z

Ah I shouldn’t :simple_smile:

agile_geek 2016-01-18T09:59:21.004224Z

@nxqd: do you use smartparens or paredit?

jimmy 2016-01-18T10:00:45.004225Z

I use smartparens

jaen 2016-01-18T10:00:46.004226Z

@slotkenov: if you look at your exception it says (emphasis that it mentions Java class files and Clojure files mine): > Exception in thread "main" java.io.FileNotFoundException: Could not locate devtools/core__init.class or devtools/core.clj on classpath You should remember how that exception looks for the next time you mistakenly write Clojurescript in a clj file. That happens to me from time to time as well, so I think it's a useful error to remember.

jimmy 2016-01-18T10:01:44.004228Z

most of my editing skills is based on motion based editing of vim. ( I use evil in emacs )

agile_geek 2016-01-18T10:02:46.004230Z

@nxqd: paredit for me. I found most useful things were learning bindings for forward/backwards burf/slurp

jimmy 2016-01-18T10:04:20.004231Z

@agile_geek: yeah, I find that one on tutorial of emacs rocks as well. It looks amazing, I think i will learn to use it tonight then 😄

slotkenov 2016-01-18T10:06:43.004233Z

@jaen Thanks for pointing that out. Server runs again. I now get a compile error in my browser:

clojure.lang.ExceptionInfo : No such namespace: devtools.core, could not locate devtools/core.cljs, devtools/core.cljc, or Closure namespace “devtools.core”

jaen 2016-01-18T10:08:11.004234Z

That looks like a Clojurescript error, all right.

jaen 2016-01-18T10:09:26.004236Z

Maybe it's a stupid question, but are you sure you added [binaryage/devtools "0.5.0"] to your dependencies?

slotkenov 2016-01-18T10:09:41.004237Z

nvm, needed to restart figwheel...

nicola 2016-01-18T11:31:11.004238Z

Do we have JSON schema implementation in clojure, which passes JSON schema test suite?

mpenet 2016-01-18T11:34:13.004239Z

the 2 most popular are cheshire and data.json

mpenet 2016-01-18T11:35:14.004240Z

former is the most performant and feature full, but uses java interop, later is pure clojure.

mpenet 2016-01-18T11:35:58.004241Z

I'd advise to use cheshire

jaen 2016-01-18T11:42:04.004243Z

JSON schema? I'm not aware of any to be honest, most people use prismatic's schema, but it stands to reason someone would implement it, but I just don't know any lib.

mpenet 2016-01-18T11:42:41.004244Z

oh I misread that...

mpenet 2016-01-18T11:43:12.004245Z

no clue

jaen 2016-01-18T11:43:13.004246Z

You might want to look at the source of https://github.com/metosin/ring-swagger

jaen 2016-01-18T11:43:31.004249Z

They seem to be translating prismatic's schema to JSON schema and vice versa.

shanekilkelly 2016-01-18T11:44:37.004250Z

this file seems promising: https://github.com/metosin/ring-swagger/blob/master/src/ring/swagger/json_schema.clj

jaen 2016-01-18T11:44:44.004252Z

You probably could write something similar using clojure.walk and/or schema walker from https://github.com/metosin/schema-tools

jaen 2016-01-18T11:44:59.004255Z

@shanekilkelly: yup, was referring to that exactly.

ikitommi 2016-01-18T12:36:53.004256Z

@nicola: not sure what you are looking for, but if you want to validate your JSON strings or Clojure data against a JSON Schema with Clojure, there is a tiny wrapper here: https://github.com/metosin/scjsv

nicola 2016-01-18T12:49:44.004258Z

@ikitommi: thx, i've seen it, it's just a wrapper around java fge - not so easy to hack :simple_smile:

nicola 2016-01-18T12:50:45.004259Z

@jaen i need JSON schema as a standard for REST platform, for internal needs we use prismatic one :simple_smile:

nicola 2016-01-18T12:52:22.004260Z

we've also tried https://github.com/bigmlcom/closchema, but it does not implements refs and some other specs from v4.

jaen 2016-01-18T12:53:24.004263Z

@nicola: yeah, I understood that, I just thought that maybe translating JSON schema to and from prismatic schema could solve your problem, since you could then validate the JSON schema with prismatic's library.

2016-01-18T13:59:47.004264Z

Hi , is it possible to add cljs-react-test only to the "test" build and not to dev or min? (dependency only to a build)

shanekilkelly 2016-01-18T14:08:52.004265Z

@razvanavram: you can have a :dependencies key under the test profile, example: https://github.com/ShaneKilkelly/jetcan-server/blob/master/project.clj#L68

2016-01-18T14:11:57.004267Z

@shanekilkelly: thanks , will try it now

shanekilkelly 2016-01-18T14:13:45.004268Z

In general, you can put any keys that would be valid at the top level into a profile, and it will take effect only for that profile.

meow 2016-01-18T15:13:17.004270Z

Please help make Clojure/west 2016 an awesomee event: https://github.com/clojurewest/clojurewest2016/wiki/Suggested-Topics

👀 2
🦜 4
2016-01-18T18:19:02.004273Z

woahhh ok maybe parinfer is magic

quadrochosis 2016-01-18T18:27:33.004274Z

Parinfer is magic

dnolen 2016-01-18T20:48:32.004277Z

@jaredly for Clojure/ClojureScript newcomers I definitely think recommending Atom + parinfer is the way to go

meow 2016-01-18T20:54:30.004278Z

sounds like #C0GCNE3B3

2016-01-18T21:46:14.004279Z

@dnolen unless they’re already emacs users 😉

dnolen 2016-01-18T21:47:34.004280Z

@rmuslimov: right, though implied that Emacs users can usually fend for themselves :simple_smile:

4
2016-01-18T22:17:35.004283Z

for spacemacs if I use monger to print all my mongodb documents, my spacemacs slows up a lot, is there any way to improve performance? It's only 2000 documents ish