This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-08
Channels
- # announcements (6)
- # babashka (78)
- # beginners (84)
- # bristol-clojurians (5)
- # calva (50)
- # chlorine-clover (45)
- # cider (14)
- # clj-kondo (18)
- # cljs-dev (2)
- # clojars (2)
- # clojure (387)
- # clojure-android (3)
- # clojure-europe (6)
- # clojure-gamedev (3)
- # clojure-germany (3)
- # clojure-nl (18)
- # clojure-spec (5)
- # clojure-uk (36)
- # clojurescript (8)
- # clojurex (1)
- # conjure (1)
- # css (1)
- # cursive (32)
- # data-science (1)
- # datomic (11)
- # docker (61)
- # duct (17)
- # emacs (7)
- # figwheel-main (3)
- # fulcro (19)
- # jobs-discuss (3)
- # joker (1)
- # leiningen (23)
- # malli (11)
- # mount (6)
- # off-topic (30)
- # pathom (14)
- # pedestal (2)
- # phzr (1)
- # re-frame (11)
- # reagent (3)
- # reitit (5)
- # ring-swagger (3)
- # rum (1)
- # shadow-cljs (113)
- # slack-help (9)
- # spacemacs (16)
- # specter (4)
- # sql (14)
- # vscode (2)
- # windows (3)
- # xtdb (12)
Hello all, I´m trying to use chlorine:go-to-var-definition
but it fails and is getting a crazy path.
What's the path you're getting?
C:\Trabalho\BM\****\Projeto\Clojure\Monitoracao\baytinela\C:\Trabalho\BM\*****\Projetos\Clojure\bayconfig\src\uim\config.clj
Uhn, never tested the feature with multi folders... I'll check here what happens.
@fabrao See https://github.com/seancorfield/atom-chlorine-setup/blob/master/keymap.cson#L46
@U04V70XH6 I used your keybinds 🙂. So you don´t clean you inlines?
'atom-workspace atom-text-editor:not([mini])':
'ctrl-; ; b': 'chlorine:teste'
'ctrl-; b': 'sean:inspect-block'
'ctrl-; B': 'sean:inspect-top-block'
'ctrl-; c': 'chlorine:break-evaluation'
'ctrl-; d': 'chlorine:doc-for-var'
'ctrl-; D': 'sean:def-binding'
'ctrl-; e': 'chlorine:disconnect'
'ctrl-; f': 'chlorine:load-file'
'ctrl-; j': 'sean:inspect-java'
'ctrl-; k': 'chlorine:clear-console'
'ctrl-; n': 'sean:inspect-ns'
'ctrl-; s': 'sean:inspect-selection'
'ctrl-; S': 'chlorine:source-for-var'
'ctrl-; t': 'chlorine:run-test-for-var'
'ctrl-; v': 'sean:inspect-var'
'ctrl-; x': 'chlorine:run-tests-in-ns'
'ctrl-; y': 'chlorine:connect-clojure-socket-repl'
'ctrl-; .': 'chlorine:go-to-var-definition'
Visit that link again.
Compare it to what you have. You haven't updated your keymap since I updated mine 🙂
That link goes directly to the line that solves your problem.
@mauricio.szabo so, is it a bug about wrong path?
@fabrao How did you start your REPL? Via cmd/powershell or via WSL?
I wonder if it's some artifact of how your dependencies are set up? You're using CLI/`deps.edn`?
How do those two projects relate to each other? (Monitoracao\baytinela and bayconfig)
(I use Atom/Chlorine on both Mac and Windows with multiple projects open and have never seen go-to-var-definition mess up like that -- and I use PS for starting my REPL on Windows mostly)
Hi, I was checking if there's any code on goto-var-definition that uses the project's folders, and I didn't find anything... Are you using a Clojure REPL, or ClojureScript, ClojureCLR?
I start with clj -J'-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}'
Can you try to re-start Atom with only one directory for the project, issue goto-var definition again, and check if the problem persist?
Try to restart it. See if it changes anything
'C:\Trabalho\BM\\Projetos\Clojure\bayconfig\C:\Trabalho\BM\\Projetos\Clojure\bayconfig\src\uim\comm.clj'
Are these *****
on the path too?
Also, what's the path of the project?
Ok, no worries. I liteally just wanted to see if the directory was messing up so far that it was adding invalid chars on the path 😄
Okay, so... can you evaluate (replacing your-fn-name with the name of the var you're trying to go to defintion):
(:file (meta #'your-fn-name))
And send the result here? You can redact the path name, no worries 🙂Also, evaluate:
(keys (meta #'your-fn-name))
Okay, one more thing: can you evaluate, please:
(str
(.getResource (clojure.lang.RT/baseLoader)
"uim/comm.clj"))
I believe this is the last thing I'll ask 🙂
@mauricio.szabo no problem, anything you want to contribute