ClojureScript

IndexingPushbackReader error when compiling :reload-all with cljs.spec.alpha

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.10.238
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

There seems to be an error when the following happens:

(ns repro.a-namespace
  (:require [cljs.spec.alpha :as s] :reload-all))

There is a repro here: https://github.com/arichiardi/cljs-reload-all-repro

The stack is enormous so I attached a file but the gist of it is:

Caused by: clojure.lang.ExceptionInfo: No implementation of method: :read-char of protocol: #'clojure.tools.reader.reader-types/Reader found for class: clojure.tools.reader.reader_types.IndexingPushbackReader {:type :reader-exception}
	at clojure.core$ex_info.invokeStatic(core.clj:4739)
	at clojure.core$ex_info.invoke(core.clj:4739)
	at clojure.tools.reader$read_STAR_.invokeStatic(reader.clj:941)
	at clojure.tools.reader$read_STAR_.invoke(reader.clj:905)
	at clojure.tools.reader$read.invokeStatic(reader.clj:972)
	at clojure.tools.reader$read.invoke(reader.clj:949)
	at cljs.analyzer$forms_seq_STAR_$forms_seq___3119$fn__3120$fn__3121.invoke(analyzer.cljc:3676)
	at cljs.analyzer$forms_seq_STAR_$forms_seq___3119$fn__3120.invoke(analyzer.cljc:3669)
	at clojure.lang.LazySeq.sval(LazySeq.java:40)
	at clojure.lang.LazySeq.seq(LazySeq.java:49)
	at clojure.lang.RT.seq(RT.java:528)
	at clojure.core$seq__5124.invokeStatic(core.clj:137)
	at clojure.core$seq__5124.invoke(core.clj:137)
	at cljs.compiler$emit_source.invokeStatic(compiler.cljc:1389)
	at cljs.compiler$emit_source.invoke(compiler.cljc:1370)
	at cljs.compiler$compile_file_STAR_$fn__4580.invoke(compiler.cljc:1471)
	at cljs.compiler$with_core_cljs.invokeStatic(compiler.cljc:1285)
	at cljs.compiler$with_core_cljs.invoke(compiler.cljc:1274)
	at cljs.compiler$compile_file_STAR_.invokeStatic(compiler.cljc:1456)
	at cljs.compiler$compile_file_STAR_.invoke(compiler.cljc:1449)
	at cljs.compiler$compile_file$fn__4611.invoke(compiler.cljc:1553)
	... 37 more

Activity

Andrea Richiardi made changes -
Field Original Value New Value
Summary IndexingPushbackReader error when compiling :reload-all in ns form IndexingPushbackReader error when compiling :reload-all with cljs.spec.alpha
David Nolen made changes -
Priority Major [ 3 ] Minor [ 4 ]

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: