nextjournal / clojure-mode

Clojure/Script mode for CodeMirror 6
https://nextjournal.github.io/clojure-mode/
Eclipse Public License 2.0
158 stars 18 forks source link

Demo page is throwing an error regarding "font-inter" #56

Open chr15m opened 1 week ago

chr15m commented 1 week ago

https://nextjournal.github.io/clojure-mode/

Uncaught (in promise) CssSyntaxError: <css input>:62:15: The `font-inter` class does not exist. If `font-inter` is a custom class, make sure it is defined within a `@layer` directive.
    ar https://cdn.tailwindcss.com/?plugins=typography:1
    error https://cdn.tailwindcss.com/?plugins=typography:21
    error https://cdn.tailwindcss.com/?plugins=typography:17
    fy https://cdn.tailwindcss.com/?plugins=typography:30
    nu https://cdn.tailwindcss.com/?plugins=typography:31
    Xs https://cdn.tailwindcss.com/?plugins=typography:31
    plugins https://cdn.tailwindcss.com/?plugins=typography:32
    runOnRoot https://cdn.tailwindcss.com/?plugins=typography:21
    runAsync https://cdn.tailwindcss.com/?plugins=typography:21
    async https://cdn.tailwindcss.com/?plugins=typography:21
    then https://cdn.tailwindcss.com/?plugins=typography:21
    promise callback*$c https://cdn.tailwindcss.com/?plugins=typography:63
    <anonymous> https://cdn.tailwindcss.com/?plugins=typography:63
    MutationCallback* https://cdn.tailwindcss.com/?plugins=typography:63
    <anonymous> https://cdn.tailwindcss.com/?plugins=typography:63
borkdude commented 1 week ago

I see this is a TODO over here by @zampino :

https://github.com/nextjournal/clojure-mode/blame/37c16b21c5ff6b280492f1447d0d2982c9a06a1a/demo/src/nextjournal/clojure_mode/demo.cljs#L241

chr15m commented 1 week ago

I saw this because I looked at the console to see if there were any errors/output because the alt-Enter ctrl-Enter functionality doesn't seem to do anything for me in the demo. I thought maybe that error was preventing the eval from working. Not sure if that's correct.

borkdude commented 1 week ago

Probably a OS-specific issue. Can you try: https://squint-cljs.github.io/squint/?

chr15m commented 1 week ago

On the squint demo forms evaluate with ctrl-Enter and show up on the right hand side.

chr15m commented 1 week ago

On the nextjournal demo are eval results supposed to show up underneath where it says "#'user/fizz-buzz"? I think I recall this happening previously.

borkdude commented 1 week ago

Yeah, it's probably the key mappings issue. Check out the difference in the squint playground issue vs this one.

chr15m commented 1 week ago

Looks like it. If I use the "meta"/windows key instead of ctrl/alt it functions correctly. I am in Firefox on Ubuntu.