Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Broken execution of cljs.spec.test.alpha/check #273

Closed
arichiardi opened this issue Sep 20, 2017 · 0 comments
Closed

Broken execution of cljs.spec.test.alpha/check #273

arichiardi opened this issue Sep 20, 2017 · 0 comments

Comments

@arichiardi
Copy link
Collaborator

arichiardi commented Sep 20, 2017

Hi Antonio,
I am going to open this as reminder of the problem. So basically the code in this repository, that does:

(ns speed-of-light.core-check
  (:require [speed-of-light.core :as core]
            [cljs.spec.test.alpha :as stest])
  (:require-macros [cljs.spec.test.alpha :as stest]))

(stest/check 'speed-of-light.core/ranged-rand)

At the moment produces an error if invoked as script (or compiled):

Cannot read property 'cljs$core$IFn$_invoke$arity$1' of undefined
     Function.cljs.spec.test.alpha$macros.check.cljs$core$IFn$_invoke$arity$4 (evalmachine.<anonymous>:733:94)
     Function.cljs.core.apply_to_simple.cljs$core$IFn$_invoke$arity$6 (NO_SOURCE_FILE <embedded>:774:131)
     Function.cljs.core.apply_to_simple.cljs$core$IFn$_invoke$arity$5 (NO_SOURCE_FILE <embedded>:773:205)
     Function.cljs.core.apply_to_simple.cljs$core$IFn$_invoke$arity$4 (NO_SOURCE_FILE <embedded>:772:199)
     Function.cljs.core.apply.cljs$core$IFn$_invoke$arity$4 (NO_SOURCE_FILE <embedded>:785:297)
     Object.cljs.analyzer.macroexpand_1_STAR_ (NO_SOURCE_FILE <embedded>:3136:105)
     Object.cljs.analyzer.macroexpand_1 (NO_SOURCE_FILE <embedded>:3139:211)
     Function.cljs.analyzer.analyze_seq.cljs$core$IFn$_invoke$arity$4 (NO_SOURCE_FILE <embedded>:3146:35)
     Object.cljs.analyzer.analyze_form (NO_SOURCE_FILE <embedded>:3183:213)
     Object.cljs.analyzer.analyze_STAR_ (NO_SOURCE_FILE <embedded>:3186:337)

It works fine at the REPL.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant