This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-09
Channels
- # beginners (55)
- # boot (173)
- # clara (3)
- # cljs-dev (10)
- # cljsjs (3)
- # clojars (11)
- # clojure (110)
- # clojure-austin (5)
- # clojure-berlin (13)
- # clojure-chicago (2)
- # clojure-dusseldorf (3)
- # clojure-france (24)
- # clojure-italy (4)
- # clojure-portugal (1)
- # clojure-russia (60)
- # clojure-serbia (8)
- # clojure-spec (150)
- # clojure-uk (129)
- # clojurescript (87)
- # core-logic (1)
- # cursive (75)
- # datavis (1)
- # datomic (75)
- # devcards (4)
- # dirac (17)
- # emacs (50)
- # events (2)
- # hoplon (9)
- # jobs (4)
- # jobs-discuss (37)
- # lein-figwheel (3)
- # luminus (5)
- # off-topic (54)
- # om (9)
- # om-next (5)
- # onyx (10)
- # perun (11)
- # protorepl (11)
- # quil (2)
- # rdf (2)
- # re-frame (14)
- # reagent (58)
- # ring (13)
- # ring-swagger (10)
- # rum (52)
- # spacemacs (8)
- # test-check (10)
- # untangled (17)
- # yada (34)
I'm trying to install cursive for clojure development. Cursive will download leiningen(although there's lein
available on PATH) but failed. Now I want to manually put the leiningen leiningen-2.7.1-standalone.jar
somewhere that Cursive can locate it. How can I achieve?
@doglooksgood Cursive will use the one in ~/.lein/self-installs
like lein itself does.
my ~/.lein/self-installs
is empty, maybe this is because my leiningen is installed via homebrew? I will have a try
the jar installed by homebrew is located at /usr/local/Celler/leiningen/2.7.1/libexec/
BTW, It's there any trick to help me figure out where the file from and path the file will be placed when I know there's process is downloading something?
There are various answers here: https://apple.stackexchange.com/questions/14409/how-to-monitor-file-access-for-an-os-x-application - looks like Instruments might be the tidiest option if you have XCode installed.
why Cursive not ship a second completion system from REPL. maybe that can have better perform for macros?
It does when you’re working in the REPL, but that doesn’t work when you’re in your editor.
The problem is that IntelliJ needs to resolve symbols all the time, for things like inspections.
Just not comfortable to see that there's a lot of stuffs can not resolve. I've see https://cursive-ide.com/userguide/macros.html And I want to use it on following code:
(defstate |datasource ;; | is my cursor
:start
(make-datasource db-spec)
:stop
(close-datasource datasource))
the datasource
is unable to resolved here, but nothing popup after press Alt-Enter .@doglooksgood You want your caret on the defstate
that works, but where the information will be stored, If someone else clone the repo, how can he got this configuration. should I commit .idea
and *.iml
?
So this is a problem right now, see: https://groups.google.com/d/topic/cursive/FcHwzTpPUuo/discussion
Eventually this will be handled with a public API and a repo users can contribute to.
maybe a repo is not the solution for in-house macros. and commit configuration with project is somehow most convenient way for team.
Yep code style settings
Align let bindings iirc
@danielcompton thanks!
Halt is the wrong expression -I mean to leave me hanging in the debugger. Actually I did find kind of a solution, namely to enable breaking on all exception. But that means that all other exceptions also trigger the debugger
There's very positive comments about it here and there (and very strong reviews FWIW), so I wonder if there's something badly wrong in my env
@cfleming So for instance, running the foo-test
below will break on both the handled and unhandled exception. I only want to break on the unhandled one in (defn foo …
(ns foo-test
(:require [clojure.test :refer :all]))
(defn foo []
(throw (Exception.))
"foo")
(deftest foo-test
(let [expected (try (throw (Exception.))
(catch Exception e "foo"))
x (foo)]
(is (= x expected))))
@cemerick I’m not a vim person myself, but I’ve heard “about the same level of emulation as evil-mode” from people who sound like they know what they’re talking about.
Go to Run->View Breakpoints…, then select your breakpoint. There are options there for only breaking on caught or uncaught exceptions.
Really simple stuff seems missing and/or really wrong. %, d%, c%, all the specific bracket edit stuff (`ci[`, etc)
I know everyone has their own 80% of vim they use, but that seems like really basic things for any lisper using vim
I ended up disabling it because it was frustrating enough (and slowed every typing action, a separate issue)
gq was always a no-op, % never worked (again, outside of cursive buffers), and Shift-up or down bizarrely seemed mapped to something like-but-not-quite pageup/down
I've sort of made my peace with not having vim keybindings for Clojure stuff, but I sorely need to work out an alternative editor for things like markdown, etc
I have a week or two of serious heads-down to get through, not going to fart around with tools any
Ok, if you decide to try again let me know, I’m definitely interested in making the experience better, but am totally unqualified to do so on my own.
@cemerick i’ve used ideavim for years outside of cursive for years without issues. At least for my 80% of vim 🙂
% for instance works flawlessly for me. Ideavim in the repl is broken in many ways best i can tell. But i use paredit for clojure and turn off vim.
how is performance? I felt significant keystroke response latency, esp moving around in normal mode.
I’ve not had a performance problem with Ideavim, I see no lag whatsoever when moving around, searching, jumping to marks etc. I suspect your problems are from a plugin somewhere. Are you using just basic intellij with cursive?
@cyclocross Is IdeaVim in the REPL broken in more ways than just the ESC problem?
@cfleming Y, it’s really hard to tell what else is wrong if anything, since i’m stuck in insert mode 🙂 But inserting text seems fine.