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

Example not working on Windows #174

Closed
cserteGT3 opened this issue Jun 12, 2019 · 3 comments
Closed

Example not working on Windows #174

cserteGT3 opened this issue Jun 12, 2019 · 3 comments

Comments

@cserteGT3
Copy link
Contributor

cserteGT3 commented Jun 12, 2019

Edit: the basic template works, I think the problem is with my nodejs install, I will investigate it.
Sorry for the noise.
I tried to run the example (as in the docs), but getting an ErrorException:

Microsoft Windows [Version 10.0.17763.557]
(c) 2018 Microsoft Corporation. Minden jog fenntartva.
C:\Users\Ipse\Documents\Code>julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.1.0 (2019-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(v1.1) pkg> add JuDoc
  Updating registry at `C:\Users\Ipse\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed LiveServer ───── v0.1.1
 Installed JuDoc ────────── v0.1.3
 Installed JuDocTemplates ─ v0.2.1
  Updating `C:\Users\Ipse\.julia\environments\v1.1\Project.toml`
  [4ca9428c] + JuDoc v0.1.3
  Updating `C:\Users\Ipse\.julia\environments\v1.1\Manifest.toml`
  [4ca9428c] + JuDoc v0.1.3
  [6793090a] + JuDocTemplates v0.2.1
  [16fef848] + LiveServer v0.1.1

julia> using JuDoc
[ Info: Recompiling stale cache file C:\Users\Ipse\.julia\compiled\v1.1\JuDoc\RFfo3.ji for JuDoc [4ca9428c-4c75-11e9-2efb-bf5cb6c1e8f8]
✘ Couldn't find highlight.js (`node -e "require('highlight.js')"` failed).
→ It is required for pre-rendering highlight.js but is not necessary to run JuDoc (cf docs).
✘ Couldn't find python3 (`python3 -V` failed).
→ It is required for minification but not necessary to run JuDoc (cf docs).
→ After installing any missing component, please re-build the package (cf docs).

julia> newsite("test", template="pure-sm")
✓ Website folder generated at "test" (now the current directory).
→ Use serve() from JuDoc to see the website in your browser.

julia> serve()
→ Initial full pass...

... error processing 'menu1.md' in ...\Code\test\src\pages.
Verify, then start judoc again...

err = ErrorException("Command '\\output' was not defined before it was used.")
-1

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i3-3227U CPU @ 1.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, ivybridge)

(v1.1) pkg> st
    Status `C:\Users\Ipse\.julia\environments\v1.1\Project.toml`
  [537997a7] AbstractPlotting v0.9.8
  [c52e3926] Atom v0.8.7
  [6e4b80f9] BenchmarkTools v0.4.2
  [5ae59095] Colors v0.9.5
  [31a5f54b] Debugger v0.5.0
  [0c46a032] DifferentialEquations v6.4.0
  [67fdca37] Displaz v1.0.0
  [add2ef01] GDAL v0.2.0
  [f7f18e0c] GLFW v2.3.0
  [e9467ef8] GLMakie v0.0.6
  [4d00f742] GeometryTypes v0.7.5
  [7073ff75] IJulia v1.18.1
  [6218d12a] ImageMagick v0.7.4
  [916415d5] Images v0.18.0 ⚲
  [4ca9428c] JuDoc v0.1.3
  [e5e0dc1b] Juno v0.7.0
  [ee78f7c6] Makie v0.9.4
  [dbd62bd0] MakieGallery v0.0.8
  [66fc600b] ModernGL v1.0.0
  [510215fc] Observables v0.2.3
  [1dea7af3] OrdinaryDiffEq v5.8.1
  [9b87118b] PackageCompiler v0.6.3
  [c46f51b8] ProfileView v0.4.1
  [df47a6cb] RData v0.6.0
  [ce6b1742] RDatasets v0.6.2
  [dee08c22] RegionTrees v0.2.0
  [295af30f] Revise v2.1.6
  [6038ab10] Rotations v0.11.1
  [90137ffa] StaticArrays v0.11.0
  [65254759] StatsMakie v0.0.6
  [8603256b] ZChop v0.3.3

Am I missing something and/or Windows is not fully tested/supported? I'm happily helping to investigate further, but just started looking into the package. (Also I installed the python and node.js dependencies, but JuDoc couldn't find them. But I will investigate these things, before asking for further help.)

@tlienart
Copy link
Owner

No worries, please let me know if you encounter other problems.

Also you may want to use JuDoc#master for now as for instance it plays better with the python call on windows. You can also specify how you want either python or node to be called. See https://github.com/tlienart/JuDoc.jl/blob/master/src/build.jl (I still need to update the doc about this #167) so if you have a specific way of calling python or node, you can specify this in ENV["PYTHON3"] or ENV["NODE"].

@cserteGT3
Copy link
Contributor Author

cserteGT3 commented Jun 16, 2019

Thanks for the environment variables link/source. Python started working without further debug, and I think that #178 solves the nodejs part.

@tlienart
Copy link
Owner

Awesome, thanks for letting me know

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

No branches or pull requests

2 participants