This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-30
Channels
- # bangalore-clj (1)
- # beginners (104)
- # boot (207)
- # cider (173)
- # cljs-dev (157)
- # cljsjs (1)
- # cljsrn (51)
- # clojure (196)
- # clojure-berlin (1)
- # clojure-chicago (1)
- # clojure-italy (4)
- # clojure-new-zealand (1)
- # clojure-nl (1)
- # clojure-russia (28)
- # clojure-spec (17)
- # clojure-uk (73)
- # clojured (13)
- # clojurescript (110)
- # core-async (4)
- # datascript (25)
- # datomic (92)
- # editors (1)
- # emacs (157)
- # events (4)
- # hoplon (16)
- # klipse (74)
- # lein-figwheel (10)
- # leiningen (2)
- # lumo (13)
- # off-topic (78)
- # om (3)
- # om-next (3)
- # onyx (14)
- # protorepl (1)
- # re-frame (17)
- # reagent (23)
- # remote-jobs (1)
- # ring-swagger (33)
- # schema (2)
- # slack-help (3)
- # spacemacs (7)
- # testing (1)
- # yada (7)
Thats weird @moxaj Klipse works fine with clojure.spec Take a look at http://blog.klipse.tech/clojure/2016/10/10/defn-args.html
I wonder what are u doing differently :thinking_face:
Klipse loads clojure.spec from the analysis cache.
Can you copy/paste the klipse_settings from the source of the page?
and also the source of the dom element that does the require
it should be somewhere at the end of the <body>
Thx @moxaj. Actually it will be more helpful if you share the whole html file
Thx @moxaj. I will look at it a bit later...
also, from the console log I see that it tries to evaluate my initial expression before loading all my sources
WARNING: Use of undeclared Var cljs.user/schema at line 1
, followed by a bunch of GET
requests
@moxaj I’m running your code snippets
and I’m getting a different error than yours:
#error {:message "Could not eval mikron.util.math in file ", :data {:tag :cljs/analysis-error}, :cause #error {:message "Can't redefine a constant at line 61 ", :data {:file "", :line 61, :column 1, :tag :cljs/analysis-error}}}
what do u mean?
but I haven't seen that error in this case, my investigation in completely separate from this issue
Do u know that when klipse compiles the code it doesn’t look at the compiler options?
And BTW, it will be easier for you to debug this issue using the klipse repl
it uses self-host cljs compiler
And it always becomes tricky when your library contains macro definitions
No parallel in self-host 🙂
I’ve prepared a snippet with your code and the external-libs
And there is a 1st draft of a guide for making a lib self-host compatible
https://github.com/viebel/klipse/wiki/How-to-make-a-clojure-library-self-host-compatible
I’d appreciate if you enrich this wiki page 😎
well, afaik, my code is self-host compatible, with regards to macros, but i'll double check
Your mikron
looks very nice
I’m looking forward your interactive doc
And also a bog post with interactive code snippets...
thanks! But the interactive doc will be relatively simple, don't expect rocket science 🙂
on a separate note, i'm seeing another error now: No method in multimethod 'cljs.analyzer/parse' for dispatch value: &
, probably related to http://dev.clojure.org/jira/browse/CLJS-1889
i'm completely puzzled now, either i'm doing something very wrong, or multiple bugs come crashing down on me
you never encountered this bug in regular cljs?
maybe the problem is because klipse doesn’t use the latest clojure.spec version
http://dev.clojure.org/jira/browse/CLJS-1653 may also be related, which was fixed in december
I could try to update clojure.spec version
But it won’t be until a couple of hours (I’m not home)
Meanwhile you can try to take clojure.spec from gihub using external-libs
And to tell klipse not to look for clojure.spec in its cache folder
by setting
clojure_cached_macro_ns_regexp
clojure_cached_ns_regexp
in the klipse_settings
now i'm seeing yet another error: "Invalid :refer, macro mikron.buffer-macros/with-delta does not exist in file ..."
. I guess one problem is cascading into all these others
@moxaj I just deployed klipse version 6.6.1
with an updated cljs version 1.9.456 (including cljs.spec)
You can check the klipse version in the browser console
you might need to clear your cache
Good luck
Don’t surrender 😎
Yeah I’ve come thru this also...
Not fun