This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-11
Channels
- # admin-announcements (1)
- # aws (2)
- # beginners (32)
- # boot (147)
- # capetown (1)
- # cider (11)
- # cljs-dev (45)
- # cljsrn (57)
- # clojure (187)
- # clojure-russia (5)
- # clojure-spec (97)
- # clojure-uk (33)
- # clojurescript (33)
- # cloverage (17)
- # clr (4)
- # conf-proposals (93)
- # core-async (6)
- # cursive (9)
- # data-science (1)
- # datomic (24)
- # defnpodcast (1)
- # devcards (3)
- # emacs (3)
- # hoplon (95)
- # jobs (1)
- # off-topic (7)
- # om (97)
- # onyx (32)
- # overtone (1)
- # parinfer (4)
- # pedestal (1)
- # proton (1)
- # protorepl (13)
- # re-frame (4)
- # reagent (10)
- # specter (14)
- # untangled (40)
(first dependents)
is outside the let
, it looks like.
There’s a ])
, when it should only be a ]
Which means it’s trying to apply the function to some other variable that’s not seqable, instead of the seqable thing you created in the scope of the let.
spot on - thanks @porglezomp !
Hello guys! I have a small question, getting the following error:
Exception in thread "main" java.io.FileNotFoundException: Could not locate chat_analysis_clj/read_data__init.class or chat_analysis_clj/read_data.clj on classpath: , compiling:(chat_analysis_clj/core.clj:1:1)
at clojure.lang.Compiler.load(Compiler.java:7142)
[....]
Caused by: java.io.FileNotFoundException: Could not locate chat_analysis_clj/read_data__init.class or chat_analysis_clj/read_data.clj on classpath:
My app code stands
src/read-data
(ns chat-analysis-clj.read-data
(:require [ :as io]
[incanter.core :as i]
[incanter.excel :as xls]))
(defn load-data []
(-> (io/resource "./data/transcript.xlsx")
(str)
(xls/read-xls)))
and my core.clj
(ns chat-analysis-clj.core
(:require [incanter.core :as i]
[ :as io]
[incanter.excel :as xls]
[chat-analysis-clj.read-data :refer :all]))
(defn -main [& args]
(println (load-data)))
@chris thanks, why is that?
right I see
thanks 😄
@polymeris: Would something like promesa help? https://github.com/funcool/promesa
How should I organize my tests if I want to do unit testing with Figwheel?
There’s the :cljsbuild
that Figwheel uses, should I add a test
folder to the :source-paths
Or put a test
namespace in my project namespace?
@porglezomp: The links on this issue seem like they might help, there's a couple examples that look pretty relevant - https://github.com/bhauman/lein-figwheel/issues/162 Have you looked into the testing capabilities of devcards? It is certainly much more than just for tests, but I absolutely love it and do all my front end unit testing there now. https://github.com/bhauman/devcards
I’ve looked at devcards a little bit, I hadn’t though of that for this though. I’m writing extremely unit-y code right now, doing stuff like rectangle intersections, so plain tests were my first thought.
Also, just curious, can you split devcards onto multiple pages? I’ll be testing a WebGL application once I start testing stuff visually, so I would only be able to have 16 things loaded on one page.
I just started watching the demo video, so I suppose I answered my own question.
@porglezomp: If you're interested in devcards at all it would probably be worth posting what you want to try on the #C09GR9UJC channel - I've never used it for anything like that so I can't really help. It sounds cool though! The example at http://rigsomelight.com/devcards/#!/devdemos.two_zero has a lot of non-visual tests and might also give you an idea of what it's like to combine testing cards and other cards.
I’ll just need to split the devcards into multiple files.