Fork me on GitHub
#shadow-cljs
<
2018-01-31
>
thheller11:01:36

@jiyinyiyong do you have the logo you made in SVG?

Jon13:01:57

I think the png one is better if you want to use. the SVG file I exported looks like not 400x400 exactly due to some invisible parts of the shapes.

thheller15:01:55

@jiyinyiyong do you remember which font you used for the S? I don't have Sketch

Jon16:01:12

not font. It's by hand...

Jon16:01:53

I would suggest https://fonts.google.com/specimen/Josefin+Sans if you want a font-face, I already used it on http://shadow-cljs.org .

thheller16:01:58

I'm reconstructing the logo by hand since the sketch svg was pretty horrible

Jon16:01:07

I'm not sure about licence issues, also I considered fonts might not been thin enough. I just made an "S" by dragging a curve.

thheller16:01:27

adding a font is not an option though

thheller16:01:55

I'll stick with your path

Jon16:01:11

what's the problem in SVG?

Jon16:01:14

try if this SVG file helpful... sliced and trimmed pixels...

thheller16:01:41

nah still horrible

thheller16:01:52

I got what I need now

Jon16:01:44

got to check it out tomorrow. late in my timezone.

Jon16:01:57

good night anyway..

thheller16:01:12

@denik this happens when you use the stdin version of the repl

thheller16:01:14

not the nrepl

thheller16:01:39

I assume this is the nrepl started by cursive?

denik16:01:21

yup after evaling the highlighted form. So I should use shadow/nrepl-select and a remote repl instead?

thheller16:01:39

:repl/quit to exit the annoying popups btw

thheller16:01:54

yes but nrepl-select only works when the middleware is loaded

denik16:01:57

figured that one out after restarting intellij 3 times 🙂

denik16:01:01

is that currently best approach to get a cljs repl in intellij?

thheller16:01:53

imho the best approach is to not use nrepl

thheller16:01:35

and using the standalone stuff, not embedded in lein repl

thheller16:01:01

ie. start shadow-cljs watch app in the terminal (intellij terminal works great)

thheller16:01:28

then connect directly to the nrepl shadow provides (which already has all the nrepl setup stuff taken care of)

denik16:01:39

Will do that then. Thanks @thheller! Very grateful to have shadow-cljs!

thheller16:01:40

I made this utility for myself so I don't have to use nrepl

thheller16:01:01

clojure.main doesn't have all the features but everything I need 😉

colindresj16:01:25

Does shadow-cljs have something similar to lein checkout dependencies? Or if using :lein true will checkouts just work?

colindresj16:01:59

I’m developing two separate CLJS projects together and one depends on the other

thheller16:01:15

@colindresj with :lein true the usual lein checkouts work yes. you can also just add the :source-paths to the other repo

colindresj16:01:54

Cool that’s what I suspected, but just wanted to make sure

davidst20:01:17

something about the release-snapshot feature broke for me. I am calling it with (shadow.cljs.devtools.api/release-snapshot :app {}). the file bundle-info.edn is created but unfortunately it is ill-formed. for example, it contains the string ... to abbreviate the contents of the vector under :build-sources. it looks like this edn file is created by some pretty printer that is meant for the repl.

thheller20:01:11

@davidst it is using pprint indeed

thheller20:01:21

wasn't aware that could create invalid code?

thheller20:01:20

I just pushed [email protected] which doesnt pprint anymore

davidst21:01:12

thank you! is there a way to create a snapshot from the command line?

davidst21:01:36

@thheller in 2.0.150 the edn file is no longer pretty printed but still elided

thheller21:01:27

can you gist the file so I can take a look?

thheller21:01:37

no idea why it would elide anything?

thheller21:01:34

command line shadow-cljs clj-eval "(shadow.cljs.devtools.api/release-snapshot :app {})" should work but no offical API for that yet

davidst21:01:13

i am guessing it has something to do with *print-length* https://clojuredocs.org/clojure.core/*print-length*

davidst21:01:44

it's set to 100 for me. maybe that's a cider thing?

thheller21:01:38

I guess that applies yes

thheller21:01:40

hmm if that is set globally that could mess up a whole bunch of stuff

thheller21:01:31

eg. the cache written by release or any other call would also be elided

davidst21:01:09

this works for me: (binding [*print-length* false] (shadow.cljs.devtools.api/release-snapshot :app {}))

thheller21:01:08

hmm I might just switch to using transit for everything. really don't want to deal with bindings whenver I print anything

thheller21:01:54

meh not a fan that this setting is applied to the repl session 😞