Error in Windows file path

Open
#565 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure
Domain
devtools

Research direction

Start by reproducing Clerk notebook rendering on Windows with the Polylith dependency polyNO.waterfall.interface, using the require statement and stack trace as the entry point. Trace how the component path C:\Users\...\components\waterfall\src\polyNO\waterfall\interface.clj is resolved, especially the %20 encoding, and consider the issue done when the notebook renders without NoSuchFileException.

Written by the indexing model from the issue text.

Description

I'm trying to create a Clerk notebook in a Polylith development workspace. One of my dependencies is a component in Polylith (a namespace in another folder). When I use this library I am unable to render the clerk notebook.
Here is my "require" statement (polyNO.waterfall.interface is the library in question):

(ns analysis.clj
  (:require [nextjournal.clerk :as clerk]
            [tablecloth.api :as tc]
            [polyNO.waterfall.interface :as wtf])
  (:import (javax.imageio ImageIO)
           (java.awt.image BufferedImage)
           (java.net URL)))

Here is the stack trace:

Unhandled clojure.lang.ExceptionInfo
`nextjournal.clerk/show!` encountered an eval error with: `"c:\\Users\\SLastname\\Company Name Dropbox\\Stuart Lastname\\Project Name\\Network Project\\polyNO\\development\\src\\tlvcAnalysis.clj"`
{:nextjournal.clerk/doc {:blob->result {
"5drWFmyfpcQwrDhcLdQR886KUiBWi6"
 {:nextjournal.clerk/visibility {:code :hide}} 
"5drxFpVPxNxH2YaATNi6Q2ajtxCiWA"
 {:nextjournal.clerk/var-from-def (var tlvcAnalysis.clj/waterfall-references)} 
"5duC57YjC4wNApZipytwD5dGYk9XWi"
 {:nextjournal.clerk/var-from-def (var tlvcAnalysis.clj/waterfall-data)} 
"8VxMLktXDdtVMc8iXimmtZ8NSKSLuY18iS4X8ByUYe38wJcyDLyPHV17oQkSvYDuZuMZzBdwAVhWgxup10 more…"
 nil} :blocks [{:loc {:column 1 :end-column 46 :end-line 1 :line 1} :text 
"{:nextjournal.clerk/visibility {:code :hide}}"
 :type :code} {:loc {:column 1 :end-column 28 :end-line 15 :line 2} :text "
(ns tlvcAnalysis.clj↩︎  (:require [nextjournal.clerk :as clerk]↩︎            [tech482 more…"
 :type :code} {:doc {:content [{:attrs {:id 
"summary"} 
:content [{:text 
"
Summary"
 :type :text}] :heading-level 2 :type :heading} {:content [{:text 
"
This page summarizes a scenario and lists the top opportunities."
 :type :text}] :type :paragraph} {:content [{:text 
"
Each opportunity consists of the following:"
 :type :text}] :type :paragraph} {:content [{:content [{:content [{:text 
"
The opportunity aggregation (by product and customer / product line / other)."
 :type :text}] :type :plain}] :type :list-item} {:content [{:content [{:text 
"
A geographic map showing the product flows."
 :type :text}] :type :plain}] :type :list-item} {:content [{:content [{:text 
"
A waterfall showing the savings by category."
 :type :text}] :type :plain}] :type :list-item} {2 more…}] :type :bullet-list} {4 more…} {2 more…} {2 more…} {4 more…} {2 more…}] :footnotes [] :type :doc} :type :markdown} {3 more…} {3 more…} {3 more…} {3 more…} {2 more…}] :file 
"
c:\Users\SLastname\Company Name Dropbox\Stuart Lastname\Project Name\Network Project\42 more…"
 :footnotes [] :nav-path 
"
/c:/Users/SLastname/Company Name Dropbox/Stuart Lastname/Project Name/Network Optimization39 more…"
 :title 
"
Summary"
 :toc {2 more…}}}
Unhandled java.nio.file.NoSuchFileException
C:\Users\SLastname\Company%20SCA%20Dropbox\Stuart%20Lastname\Project%20Name\Network%20Project\polyNO\components\waterfall\src\polyNO\waterfall\interface.clj
Dominant language
Clojure
Stars
2.1k
Forks
87
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextjournal/clerk

All issues in nextjournal/clerk

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.