ClassNotFoundException clojure.core.cache.CacheProtocol

Description

Problem

On a fresh "lein new" project with only clojure 1.7.0 and core.typed 0.3.15, (t/check-ns) fails with:

Solution

This commit generates jars that contains AOT compiled code only for core.typed namespaces, but not for 3rd party libraries (like core.cache). This is because these lines trim out all .class files that are not under core.typed due to problems with CLJS.

We disable AOT compilation completely to work around this issue. We could instead selectively remove CLJS files, we should investigate if this is possible later.

Pull request: 79
Commit: 8aa2df2

Environment

OSX 10.11.1, Clojure 1.7.0

Activity

Show:
Ambrose Bonnaire-Sergeant
November 11, 2015, 4:11 PM

I'm pretty sure this is because the current build deletes 3rd party AOT class files, while leaving the core.typed class files intact.

Workaround: [org.clojure/core.typed "0.3.15" :classifier "slim"]

import
November 10, 2015, 11:51 PM

Comment made by: takeoutweight

Forgot to add: Java version 1.8.0_25-b02

Completed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Ambrose Bonnaire-Sergeant

Reporter

import