Fork me on GitHub
#shadow-cljs
<
2022-07-03
>
prnc10:07:36

Hello 👋 Is there a way to set the ‘config map’ options of binaryage/cljs-devtools in shadow-cljs (edn config file)? This sections describes it for e.g. lein based projects: https://github.com/binaryage/cljs-devtools/blob/master/docs/configuration.md#configuration-via-compiler-options

prnc10:07:32

I’m very interested to learn how to do it for it’s own merit, but in the spirit of XY problem, one level up the stack is the issues of trying to suppress the some custom formatters were not rendered. message with :dont-detect-custom-formatters true following: https://github.com/binaryage/cljs-devtools/blob/master/docs/faq.md#why-some-custom-formatters-were-not-rendered I get the warning, yet formatters seem to work just fine (so wanted to get rid of the warn for the time being — chrome 103.0.5060.53)

thheller13:07:57

yes, just put it in :compiler-options in the build config

👍 1
prnc14:07:48

Awesome, thanks!

geraldodev15:07:06

@U7MHWDLD8 Have you succeeded with the msg removal ?

prnc20:07:57

@U0516053R thanks for checking in — I’m no seeing the message anymore 🙂

geraldodev21:07:56

@U7MHWDLD8 can you describe what you did ?

prnc09:07:04

Not sure it’s the only thing I did (since I’ve been messing with the app quite a bit), but maybe try something along the lines of

{..
 :builds {:app {:compiler-options {:external-config {:devtools/config {:features-to-install           [:formatters :hints]
                                                                       :dont-detect-custom-formatters true}}}}}}
in the shadow-cljs.edn

👍 1
pinkfrog14:07:16

I cannot get pretty print working with the :repl-pprint on, what can I check? https://shadow-cljs.github.io/docs/UsersGuide.html#_repl_3

thheller14:07:51

which REPL client do you use?

pinkfrog01:07:43

FYI, this is the relevant issue on Calva. As for me, I am using Calva with pprint functionality. It doesn’t work. I then switched to the calva engine, it now works. See https://calva.io/pprint/#pprint-is-not-working-for-clojurescript:~:text=Comments-,calva,-client