This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-25
Channels
- # announcements (2)
- # beginners (30)
- # biff (12)
- # calva (2)
- # cider (62)
- # clerk (18)
- # clj-commons (20)
- # clojure (9)
- # clojure-europe (6)
- # clojure-switzerland (1)
- # core-logic (6)
- # datomic (4)
- # events (3)
- # fulcro (1)
- # membrane (15)
- # off-topic (16)
- # portal (24)
- # practicalli (2)
- # releases (1)
- # rewrite-clj (45)
- # shadow-cljs (14)
- # tools-build (1)
- # xtdb (4)
is there a way to have a line number with goto-definition
? I found that it works nicely for files, but I couldn’t figure out line numbers were a thing there. From https://github.com/djblue/portal/blob/bf98fa0c4b11a5e27e0ece19480147c6da86b2ad/src/portal/runtime/jvm/editor.clj#L119-L130, I would not suspect such a thing, but I figured it wouldn’t hurt to ask 😄 (Also I might be looking at the wrong code)
There are a few ways to specify the info, but usually a map with that info is good enough
hmm when I press g
d
on
"/Users/stephan/Sources/foo/bar/factory_test.go"
I get to that tab in vscode, if I do the same on
"/Users/stephan/Sources/foo/bar/factory_test.go:31"
nothing happens🥳 thanks a lot
don’t even need "column": 0
(since I don’t have that info anyways)
If a value produces metadata that also looks like that (like vars) it will also work 👌
I’m currently pushing a JSON blob into /submit
; how that would work with metadata is still beyond me
:thinking_face: https://github.com/go-edn/edn maybe… maybe…
https://github.com/djblue/portal/blob/bf98fa0c4b11a5e27e0ece19480147c6da86b2ad/src/portal/ui/viewer/log.cljs#L65-L69? looks doable
(I had only looked at exception before and that was too specific)
how does symbol?
look like in json?
Although, it might be equally nice to provide a hook in the submit handler to transform data
I’m still getting into all this… so I won’t volunteer for a PR right away 😅 but I like it a lot, thanks for portal ✨