clay icon indicating copy to clipboard operation
clay copied to clipboard

clay/make! Execution error in 2-beta45

Open jspille opened this issue 6 months ago • 1 comments

I use Clojure 1.12.0 on Windows 11 cmd in a folder with just one "demo.clj" file.

With: path> clj -Sdeps "{:deps {org.scicloj/clay {:mvn/version \"2-beta45\"}}}" user=> (require '[scicloj.clay.v2.api :as clay]) user=> (clay/make! {:source-path "demo.clj" :live-reload true})

I get the error: Execution error (URISyntaxException) at java.net.URI$Parser/fail (URI.java:2974). Illegal character in path at index 4: docs\demo_files/html-default0.js

With: path> clj -Sdeps "{:deps {org.scicloj/clay {:mvn/version \"2-beta44\"}}}" user=> (require '[scicloj.clay.v2.api :as clay]) user=> (clay/make! {:source-path "demo.clj" :live-reload true})

it works!

with the following output: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. {:url "http://localhost:1971/", :key "clay", :title "Clay", :reveal false, :info [[[[:wrote "docs/demo.html"] nil]] nil {:watchers {"C:\DataDocs\1_Projects\Projects2025\temp" #object[io.methvin.watcher.DirectoryWatcher 0x329cdafa "io.methvin.watcher.DirectoryWatcher@329cdafa"]}, :file-specs {"C:\DataDocs\1_Projects\Projects2025\temp\demo.clj" {:source-path "demo.clj", :live-reload true}}}]}

jspille avatar Jun 28 '25 13:06 jspille

Many thanks, @jspille.

This seems related to #255, and is possibly related to recent changes in the way we handle paths.

Apologies for the delay in handling this bug, it may take more time.

daslu avatar Jun 28 '25 20:06 daslu