This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-06
Channels
- # beginners (95)
- # boot (3)
- # cider (13)
- # cljs-dev (9)
- # cljsjs (1)
- # cljsrn (35)
- # clojure (78)
- # clojure-dev (5)
- # clojure-italy (6)
- # clojure-nl (9)
- # clojure-russia (13)
- # clojure-spec (1)
- # clojure-uk (74)
- # clojurescript (59)
- # community-development (6)
- # core-async (41)
- # css (110)
- # data-science (2)
- # datomic (22)
- # defnpodcast (1)
- # devcards (1)
- # docs (1)
- # editors (6)
- # emacs (51)
- # figwheel (1)
- # fulcro (66)
- # jobs (1)
- # jobs-discuss (75)
- # lumo (51)
- # mount (2)
- # off-topic (33)
- # pedestal (24)
- # proton (3)
- # re-frame (29)
- # reagent (92)
- # reitit (16)
- # shadow-cljs (16)
- # spacemacs (4)
- # specter (6)
- # vim (6)
- # yada (7)
@pez could you help with such a problem
(defstate worker
:start
That is defstate from mount and it defines worker.
But that var marked red with 'Unable to resolve symbol worker'.Hello, @maxp. You are running into a limitation of the Joker linter, it doesn't do a full scan of all files and does not recognize defstate
(in your case) as a macro. But all is not lost! To get rid of the error messages, add defstate
to Joker's list of known macros. Create a .joker
file somewhere in the path from the root of your project to where you are using the macro (I prefer to have it in the project root), and add:
{:known-macros [some-ns/defstate]}
Replace some-ns
with whatever namespace you are requiring the macro from. Read more about Joker's linter mode here: https://github.com/candid82/joker#linter-mode