This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-24
Channels
- # beginners (10)
- # boot (14)
- # cider (80)
- # clara (1)
- # cljs-dev (19)
- # cljsrn (7)
- # clojure (284)
- # clojure-france (4)
- # clojure-italy (57)
- # clojure-poland (8)
- # clojure-russia (10)
- # clojure-spec (65)
- # clojure-uk (155)
- # clojurescript (156)
- # code-reviews (6)
- # copenhagen-clojurians (16)
- # cursive (10)
- # datomic (10)
- # emacs (13)
- # euroclojure (1)
- # graphql (4)
- # jobs (2)
- # lein-figwheel (3)
- # luminus (4)
- # off-topic (2)
- # onyx (42)
- # parinfer (23)
- # pedestal (1)
- # protorepl (8)
- # re-frame (34)
- # reagent (17)
- # ring-swagger (5)
- # timbre (24)
- # vim (72)
- # yada (1)
Indeed. I just opened your diff and saw 3 functions that exists in CIDER, therefore my remark.
@benedek everything boot-related https://github.com/clojure-emacs/cider-nrepl/search?utf8=%E2%9C%93&q=boot&type=
when I boot into a project I want all functions of the classpath to load into cider so I can test them
(ns tomahawk.db.utilities
(:require [clojure.java.jdbc :as jdbc]
[ :as io]
[clojure.string :as s]
[tomahawk.common :as c]
[clojurewerkz.propertied.properties :as p])
(:import java.lang.Exception javax.naming.ConfigurationException))
ok but that means each time I modify/add a function, I'll need to re-eval this ns form. right?
you are anticipating adding functions to a different file while working in another file?
suppose you have 3 files. you want all of the functions defined in those three files available to you from the user namespace?
what are you trying to get around by not just evaling one of the buffers and working in the namespace?
you can do something along these lines with potemkin which can expose things into your current namespace
you can eval any functions, all of the dependencies of the namespace will be there ready to use
I've never run into wanting all my functions available at once. I only want the functions in the namespace I'm working in
cider-refresh will reload the namespaces Reload modified and unloaded namespaces on the classpath.
if you want to switch namespaces, you can use the ns
entry and go into a namespace and then the functions will be available to you
ok I think I was confusing "loading a namespace" and "loading the functions in a buffer"
i think there's some miscommunication of terminology so I'm making sure I'm understanding what you are talking about
Not trying to talk condescendingly or anything. just making sure I'm aware of what you're expecting from refresh and what makes you think it hasn't worked
I use cider-refresh
, then I try to use a function whose definition is in a file in the src/expert-system
directory, and cider throws java.lang.RuntimeExpection
go the the file which contains the function you would like to use and C-u C-c M-z
to load that namespace