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.
@calmwinds: spacemacs here, have yet to find anything better.
partly lighttable, partly intellj with cursive. Depends on what I need to do
cursive is a no-go for me because intellij has long-standing bugs with handling non-US/Qwerty keyboard layouts
@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.
That was fast :simple_smile:
I was just looking it up :simple_smile:
It’s been open for five years with no sign of being fixed, affects dvorak/swedish/german/etc in various ways
and there’s a bunch of related issues linked to it.
until they sort that out, I (and a bunch of other people) can’t even evaluate it for use.
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?
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
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.
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.
anyway, not really a comment on cursive itself, just pointing out intellij as a platform has some issues :simple_smile:
Sure, I understand, just trying to understand the problems people are having.
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.
Eclipse works fine
Right, but Eclipse doesn’t use AWT
true
Looking at that, any Swing app will suffer from the same problem.
maybe it will get fixed this year, now that they’re shipping their own jdk.
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.
yup.
oh well, we can only wait :simple_smile: until then I’ll stick with spacemacs
for all its flaws, it generally does the right thing when I press a key 😛
Or at least does the wrong thing consistently :simple_smile:
indeed :simple_smile:
nah, in all seriousness, spacemacs is very, very good. especially for someone with vim skills who wants a not-vim editor.
it definitely seems like it, the color theme thats out of the box is great too.
I really like the tommorrow-night theme
I think you need to enable themes-megapack to get it though
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.
I think the bug only affects OSX
Looks interesting, haven’t heard of spacemacs before. I’m using vim now.
spacemacs is like oh-my-zsh for vim user who wants to switch to emacs
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
I’m using oh-my-zsh @nxqd :simple_smile:
@slotkenov: how are you including it?
[devtools.core :as devtools]
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.
Ah
@agile_geek: same here 😄
Are you doing it in a clj
file perchance?
yes
Shouldn’t I
@agile_geek: I'm still finding my way to be more effective with slurp and barf in emacs while editing lisp.
Hah, that's why. It's a Clojurescript library, so you can't use it in Clojure.
It should be working in a cljs
file no problem.
Ah I shouldn’t :simple_smile:
@nxqd: do you use smartparens or paredit?
I use smartparens
@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.
most of my editing skills is based on motion based editing of vim. ( I use evil in emacs )
@nxqd: paredit for me. I found most useful things were learning bindings for forward/backwards burf/slurp
@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 😄
@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”
That looks like a Clojurescript error, all right.
Maybe it's a stupid question, but are you sure you added [binaryage/devtools "0.5.0"]
to your dependencies?
nvm, needed to restart figwheel...
Do we have JSON schema implementation in clojure, which passes JSON schema test suite?
the 2 most popular are cheshire and data.json
former is the most performant and feature full, but uses java interop, later is pure clojure.
I'd advise to use cheshire
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.
oh I misread that...
no clue
You might want to look at the source of https://github.com/metosin/ring-swagger
They seem to be translating prismatic's schema to JSON schema and vice versa.
this file seems promising: https://github.com/metosin/ring-swagger/blob/master/src/ring/swagger/json_schema.clj
You probably could write something similar using clojure.walk
and/or schema walker from https://github.com/metosin/schema-tools
@shanekilkelly: yup, was referring to that exactly.
@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
@ikitommi: thx, i've seen it, it's just a wrapper around java fge - not so easy to hack :simple_smile:
@jaen i need JSON schema as a standard for REST platform, for internal needs we use prismatic one :simple_smile:
we've also tried https://github.com/bigmlcom/closchema, but it does not implements refs and some other specs from v4.
@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.
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)
@razvanavram: you can have a :dependencies
key under the test
profile, example: https://github.com/ShaneKilkelly/jetcan-server/blob/master/project.clj#L68
@shanekilkelly: thanks , will try it now
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.
Please help make Clojure/west 2016 an awesomee event: https://github.com/clojurewest/clojurewest2016/wiki/Suggested-Topics
woahhh ok maybe parinfer is magic
Parinfer is magic
@jaredly for Clojure/ClojureScript newcomers I definitely think recommending Atom + parinfer is the way to go
sounds like #C0GCNE3B3
@dnolen unless they’re already emacs users 😉
@rmuslimov: right, though implied that Emacs users can usually fend for themselves :simple_smile:
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