This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-06
Channels
- # announcements (1)
- # bangalore-clj (3)
- # beginners (73)
- # boot (1)
- # calva (88)
- # cljdoc (13)
- # cljsrn (1)
- # clojure (65)
- # clojure-finland (1)
- # clojure-spec (14)
- # clojure-uk (1)
- # clojurescript (50)
- # core-async (4)
- # datavis (6)
- # duct (2)
- # figwheel-main (1)
- # off-topic (15)
- # pedestal (16)
- # planck (11)
- # re-frame (3)
- # shadow-cljs (19)
- # yada (3)
Is this considered a bug, that the cljs compiler's error message for this code is "NullPointerException", pointing at the first line? How about "Methods of a deftype require at least one argument", pointing at the third line?
(deftype Foo [a b]
Object
(bar [] 123))
Anyone else notice that hot reloading code in figwheel breaks the source maps? (I'm using Safari)
Hey guys super noob question: trying to use: https://github.com/clj-commons/cljss
:require [cljss.core :refer [defstyles]]
the code I'm getting is saying cljss.core/defstyles does not exist.
Does this mean its an issue with my project file?@zacharycetinic try putting :include-macros true
after [defstyles]
someone should add the proper :require-macros
to cljss so that :include-macros
isn't necessary
macros are written in Clojure, in a separate file usually. you have to tell the CLJS compiler to include them by using :include-macros true
or writing :require-macros [cljss.core :refer [defstyles]]
☝️ what thheller said is also true. a maintainer of that library could add the require to the clojurescript file so that you don’t have to as well
macros happen at compilation time, so if you have a slow macro it will slow down the compilation
Thank you @lilactown. Another noob q if you don't mind: right now im running figwheel/re-frame and when i write correct code it works great. However, when i write incorrect code a Java exception is thrown and it seems like I have to restart figwheel. Is there some way around this or am I missing something?
it’s been a long time since I used figwheel, but I remember it’s error messages were quite nice if I had a problem in my ClojureScript code
The code was just a bunch of reagent template like this i cant seem to recreate the error again though so unsure exactly
I might've tried to add an 'src' to an image tag but im not sure if that was thrown before or after that error
I was able to 'control-c' out of the runtime error and the repl showed up again but hot reloading didn't work until i restarted figwheel
@lilactown what in particular are you looking for? I toyed with the idea of creating a devtools extension for shadow-cljs a while ago. pretty straightforward to get it setup
I’m running through the chrome extension dev tutorial right now. I’ll see how far that gets me 😄
https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/cljs/ui/chrome_ext/devtools.cljs