Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to load markdown viewer on MS-Windows #29

Closed
ikappaki opened this issue Dec 4, 2021 · 1 comment · Fixed by #31
Closed

Failure to load markdown viewer on MS-Windows #29

ikappaki opened this issue Dec 4, 2021 · 1 comment · Fixed by #31

Comments

@ikappaki
Copy link
Contributor

ikappaki commented Dec 4, 2021

Hi, there is an issue trying to load the markdown viewer on <S-Windows.

To reproduce, just run the markdown test suite

>powershell -command clojure -X:test/markdown
....
Execution error (PolyglotException) at sun.nio.fs.WindowsPathParser/normalize (WindowsPathParser.java:182).
java.nio.file.InvalidPathException: Illegal char <:> at index 2: /D:/src/viewers/modules/markdown/resources/js/markdown.mjs

This is due to an invalid path generated to markdown.mjs passed in the graalvm polygot.

Also, the clojure cli tool can't seem to be able to download the clerk dependency from the devdocs module.

>powershell -command clojure -Stree
Cloning: git@github.com:nextjournal/clerk.git
Error building classpath. Unable to clone C:\Users\ikappaki\.gitlibs\_repos\git@github.com\nextjournal\clerk
FATAL ERROR: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This appears to be due to the git:/ protocol used for that particular dependency.

PR to follow, thanks.

@milelo
Copy link

milelo commented Dec 7, 2021

As reported on Slack nextjournal this also causes a startup problem with clerk-demo on Windows:
I've got a small Clerk project I created already running ok on my system.
I'm trying to start:
https://github.com/nextjournal/clerk-demo
from a Windows terminal using "clj" (CLI version 1.10.3.933).
I get a startup exception:
Caused by: org.graalvm.polyglot.PolyglotException: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/mail/.gitlibs/libs/io.github.nextjournal/viewers/1b1374db20b56d14a0f32835c1ce5d9254c23527/modules/markdown/resources/js/markdown.mjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants