This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-09
Channels
- # aleph (1)
- # asami (5)
- # babashka (4)
- # beginners (8)
- # biff (19)
- # calva (2)
- # cider (14)
- # clojure (17)
- # clojure-dev (3)
- # clojure-europe (3)
- # clojurescript (2)
- # community-development (9)
- # conjure (1)
- # core-typed (2)
- # datomic (6)
- # emacs (20)
- # gratitude (1)
- # helix (5)
- # kaocha (4)
- # nbb (1)
- # releases (3)
- # testing (17)
Since last few days, when I connect to a k8s pod using port-forwarding, I am noticing that when I load the file, the changes are only saved locally. So, if I run it from the editor’s repl(which is calva, btw), the changes are there. But, the changes are not “saved” in the pod. So, if I hit an API for example and I start throwing an exception from the handler function, the API doesn’t return with exception. But if I invoke the handler function directly from the repl(while being connected to the pod by port-forwarding), it does throw an exception. This used to work some time back(API would also start throwing an exception if I connect to the pod and make such changes) and this might be related to something changing at my workplace but since I don’t have much idea on how this works, would be great if someone can point me in the right direction ✌️
If you want to update the pod(s) you need to use the k8 api. Might want to ask for more help in a channel specific to that, as I'm not sure how many k8 users you will find here.
I have some issue using macros via :refer-macros.
(ns generator.contentful
(:require
[graphql-builder.parser :refer-macros [defgraphql]]
[graphql-builder.core :as core]))
(defgraphql graphql-queries "contentful/getNavTree.graphql")
(graphql-builder.parser/defgraphql testing2 "contentful/getNavTree.graphql")
Last line works in repl, second last fails with “Unable to resolve symbol: defgraphql in this context”. And yes, ns macro has been evaluated. What could be wrong here?My code is basically same as in here: https://github.com/retro/graphql-builder#api
oh dear, this is some sort of difference between clojure and cljs. 😐
Well macros definitely works differently in CLJS.
https://code.thheller.com/blog/shadow-cljs/2019/10/12/clojurescript-macros.html
You probably need :require-macros
.