This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-05
Channels
- # bangalore-clj (1)
- # beginners (50)
- # boot (72)
- # cider (53)
- # cljs-dev (303)
- # cljsrn (2)
- # clojure (403)
- # clojure-conj (3)
- # clojure-dev (7)
- # clojure-italy (18)
- # clojure-russia (129)
- # clojure-sg (1)
- # clojure-spec (44)
- # clojure-uk (25)
- # clojurescript (112)
- # core-async (4)
- # core-typed (3)
- # cursive (23)
- # datomic (114)
- # defnpodcast (1)
- # emacs (1)
- # figwheel (2)
- # graphql (18)
- # hoplon (110)
- # instaparse (6)
- # jobs (3)
- # jobs-discuss (10)
- # leiningen (5)
- # luminus (1)
- # lumo (151)
- # off-topic (22)
- # om (3)
- # om-next (3)
- # onyx (4)
- # parinfer (1)
- # pedestal (8)
- # precept (51)
- # re-frame (19)
- # reagent (3)
- # ring (1)
- # ring-swagger (5)
- # spacemacs (21)
- # sql (25)
- # test-check (2)
- # uncomplicate (8)
- # unrepl (33)
- # untangled (20)
- # yada (14)
I am getting a spec error when I try to do a cider-jack-in
in my project.
`Caused by: clojure.lang.ExceptionInfo: Call to clojure.core/ns did not conform to spec:
In: [0] val: “my-ui.core” fails at: [:args :name] predicate: simple-symbol?`
My project.clj has "my-ui.core"
as the value for `:main: key.
However I am able to run the app via lein run
, the failure only happens when I want to do cider-jack-in
or cider-jack-in-clojurescript
Hi.Anyone have idea why I can not jump to function definition source code when coding clojure in spacemacs? Clojure code works.
@zhoumin79 are you jacking in? So you mean you can't with clojure*script? Are you using boot or lein?
yes,when I press “, g g” ,it shows the error “No jump handler..” I run Spacemacs in WINDOWS. Thanks.
It cannot jump to external source code.
for example, When coding I want to jump to “defstate” in mount source code ,it cannot.
emacs 25.2
https://github.com/syl20bnr/spacemacs/tree/bd7ef98e4c35fd87538dd2a81356cc83f5fd02f3/layers/%2Blang/clojure @zhoumin79 try <space>mgg
spacemacs/go-to-definition
do you have the clojure layer installed? it looks like it registers those jump handlers
Installed.I find I can go to clojure core source code, but I cannot go to other source code such as mount code
@dpsutton thanks. It seems like the ns problem. I will try more.
@richiardiandrea I'm probably not the person to dig into this, but how does a variable become allowed in .dir-locals.el?
the defcustom
declares the type that is considered safe
Yeah that is something I'd like to discuss with Bozhidar...
Agree. I can't think of anything particularly malicious that could be done… that couldn't be done by putting things into build.boot anyway
Many variables are not marked as safe just because nobody thought of this. Relatively few people use .dir-locals.el
.
I couldn't implement this myself in a timely manner (not an emacs user) but I'll open the cider issue anyway. Would make boot repos simpler for cider users to have this marked as safe.
I suspect emacs checks also the names and where it finds command
it emits a warning...I have this gut feeling
@dominicm you just need to add :safe #'stringp
in the defcustom
definition
I'd do it but not now now 😄
@richiardiandrea that implies I know how to install cider into emacs 😉
lol sure...you could use vim to just modify the cider
repo, no tests...then I will try it 😄
maybe we need to make all the lein
and gradle
params safe too?
and -command
...or we wait for folks to complain 😄
also maybe cider-default-repl-command
and cider-preferred-build-tool
... @bozhidar @dominicm up to you 😄
Even cider-allow-jack-in-without-project
looks like it could be useful for .dir-locals.el
@richiardiandrea https://github.com/clojure-emacs/cider/tree/65c30528aed982024c87c65e95193fbb49ff4f99 these look good
@dominicm cool, I'll review the PR 🙂
Can't tick any boxes for the PR as I can't even make test
(ofc). So I'm just gonna mark you as the culprit 😉
ok queued!
@dominicm thanks for the suggestion re set-refresh-dirs
- I'm not sure how to go about calling cider's copy of tns though, sorry
@featheredtoast cider.inlined-deps.toolsnamespace.v0v3v0-alpha3.clojure.tools.namespace.repl/set-refresh-dirs
ah; thank you!