# Generating Weave documents using a Genie server

**URL:** https://discourse.julialang.org/t/generating-weave-documents-using-a-genie-server/68617
**Category:** General Usage
**Tags:** question, package, plotting
**Created:** [September 23, 2021, 6:54am UTC](https://discourse.julialang.org/t/generating-weave-documents-using-a-genie-server/68617 "2021-09-23T06:54:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thazhemadam](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@thazhemadam](https://discourse.julialang.org/u/thazhemadam)
#### Post date: [September 23, 2021, 6:54am UTC](https://discourse.julialang.org/t/generating-weave-documents-using-a-genie-server/68617/1 "2021-09-23T06:54:22Z")

</div>

I’m trying to run [this](http://weavejl.mpastell.com/stable/usage/#weave) weave example on a [Genie.jl](https://github.com/GenieFramework/Genie.jl) server. However, it seems to block for some reason and not progress at all after a point.

To be precise, it blocks at this point.

```nohighlight
└ Web Server starting at http://127.0.0.1:8000 - press Ctrl/Cmd+C to stop the server. 
┌ Info: Weaving chunk 1 from line 19
└ progress = 0.0
┌ Info: Weaving chunk 2 from line 42
└ progress = 0.16666666666666666
┌ Info: Weaving chunk 3 from line 71
└ progress = 0.3333333333333333
┌ Info: Weaving chunk 4 from line 83
└ progress = 0.5
┌ Info: Weaving chunk 5 from line 88
└ progress = 0.6666666666666666

```

I can’t even seem to Ctrl+C/Ctrl+D quit the process either.

`htop` tells me that the `julia` process is still using my system resources though.  
I also seem to be able to run the weave example normally from a REPL. Could someone help me figure out what’s going on here and how I could fix this?

This is the file I include from REPL to get the server running.

```julia
using Weave
using Genie, Genie.Router, Genie.Renderer.Json, Genie.Requests
using HTTP

route("/weave") do
    weave("x.jmd"; out_path=:pwd)
    return
end

Genie.startup(async = false)

```

Note - here, `x.jmd` is the `Weave.SAMPLE_JC_DOC` file.

---

<div class="post-metadata">

### Author: ![thazhemadam](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@thazhemadam](https://discourse.julialang.org/u/thazhemadam)
#### Post date: [February 13, 2022, 10:30am UTC](https://discourse.julialang.org/t/generating-weave-documents-using-a-genie-server/68617/2 "2022-02-13T10:30:53Z")

</div>

Update -  
The workaround in the comment here - [https://github.com/JunoLab/Weave.jl/issues/310#issuecomment-917442717](https://github.com/JunoLab/Weave.jl/issues/310#issuecomment-917442717) - worked for me.
