This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-26
Channels
- # announcements (18)
- # aws (17)
- # babashka (19)
- # beginners (141)
- # calva (73)
- # cider (4)
- # clj-kondo (13)
- # cljs-dev (2)
- # clojure (97)
- # clojure-europe (6)
- # clojure-italy (5)
- # clojure-nl (1)
- # clojure-spec (25)
- # clojure-sweden (2)
- # clojure-uk (25)
- # clojured (3)
- # clojurescript (63)
- # core-typed (6)
- # cursive (23)
- # data-science (4)
- # datomic (74)
- # fulcro (19)
- # graalvm (18)
- # graphql (3)
- # hoplon (63)
- # jackdaw (1)
- # juxt (23)
- # london-clojurians (3)
- # meander (7)
- # off-topic (23)
- # om (1)
- # pathom (13)
- # pedestal (2)
- # perun (2)
- # re-frame (38)
- # reagent (3)
- # reitit (24)
- # shadow-cljs (91)
- # spacemacs (14)
- # sql (4)
- # tools-deps (8)
- # vim (3)
Hi, can someone help with this ? I'm trying to use hicory inside a renderer to modify an existing html page, but doing this inside a renderer:
(ns io.embarassed.index
(:require [io.embarassed.common :as common]
)
(:use [hiccup.core :only (html)]
[hiccup.page :only (html5)]
[hickory.core :only (parse)]))
(defn render [{global-meta :meta posts :entries}]
(println (parse "<a href=\"foo\">foo</a>"))
I get this error:
[render] - rendered new or changed file public/prova.html
http://java.io.FileNotFoundException: Could not locate hickory/core__init.class or hickory/core.clj on classpath.
clojure.lang.Compiler$CompilerException: http://java.io.FileNotFoundException: Could not locate hickory/core__init.class or hickory/core.clj on classpath., compiling:(io/embarassed/index.clj:1:1)
I added hickory to the set-env! in build.boot like this:
(set-env!
:source-paths #{"src"}
:resource-paths #{"content"}
:dependencies '[[perun "0.4.3-SNAPSHOT" :scope "test"]
[hiccup "1.0.5" :exclusions [org.clojure/clojure]]
[org.martinklepsch/boot-garden "1.3.2-1"]
[garden "1.3.9"]
[hickory "0.7.1"]
[pandeiro/boot-http "0.8.3" :exclusions [org.clojure/clojure]]])
(require '[clojure.string :as str]
'[boot.core :as boot]
'[io.perun.meta :as pm]
'[io.perun :as perun]
'[io.perun.core :as cperun]
'[hickory.core :as hk]
'[org.martinklepsch.boot-garden :refer [garden]]
'[io.embarassed.index :as index-view]
'[ :as post-view]
'[pandeiro.boot-http :refer [serve]])
and
(println (hk/parse "<a href=\"foo\">foo</a>"))
correctly works in the repl, it seems it has problem when run in a pod.
From what I can understand from the sources pod creation uses the same set of dependencies, so I'm really confused.
How do you troubleshoot this kind of problems ?