<p>Bro, it happened to me just now.</p>
<p>It was because I was in the wrong directory
you have to call this from the <strong>plutus-apps</strong> root directory:</p>
<p>You said you are already at this directory but could you please double check?</p>
<p>This is correct:</p>
<blockquote>
<p>[nix-shell:/mnt/c/me/Dev/plutus/<strong>plutus-apps</strong>]$ build-and-serve-docs</p>
</blockquote>
<p>Incorrect:</p>
<blockquote>
<p>[nix-shell:/mnt/c/me/Dev/<strong>plutus</strong>]$ build-and-serve-docs</p>
</blockquote>

CC BY-SA 4.0
2022-01-23T13:51:25.460Z
2022-01-23T13:51:25.460Z
LexTRX
<p>On Windows 10 with WSL2 (Ubuntu)</p>
<p>I go to <code>plutus-apps</code>,
then run <code>nix-shell</code>,
there after I run <code>build-and-serve-docs</code> from within nix-shell</p>
<p>See image for errors..</p>
<p>After build I can access a documentation link but there's no haddock documentation.</p>
<p>I did have a space issue yesterday that prevented some file from being written, is there maybe a way to &quot;clear cache&quot; and rebuild docs ..</p>
<p><em>Is there maybe another way I can build the haddock docs, or can I access the docs elsewhere?</em></p>
<p><a href="https://i.sstatic.net/Rkonl.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Rkonl.png" alt="build-and-serve-docs" /></a></p>
<p><a href="https://i.sstatic.net/1Y457.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1Y457.png" alt="hosted-docs-missing-haddock" /></a>ck.imgur.com/Rkonl.png</p>

CC BY-SA 4.0
2022-01-18T07:59:53.993Z
Are you on the right revision for week 1? You can check with git rev-parse HEAD. It should be 4114...5c8a
Avatar33
CC BY-SA 4.0
2022-01-18T08:03:42.730Z
Yes thanks - checked that - am on commit 41149926c108c71831cfe8d244c83b0ee4bf5c8a
HeikoR
CC BY-SA 4.0
2022-01-18T14:36:53.227Z
This sounds like corruption due to running out of disk space to me. Can you run `nix-collect-garbage -d`, re-enter the nix-shell and run that command again?
Samuel Leathers
<plutus-pioneer-program><nix-shell><documentation>
Get errors when trying to generate Haddock documentation using build-and-serve-docs
# Get errors when trying to generate Haddock documentation using build-and-serve-docs

(Asked by: username_0 on 2022-01-18)

On Windows 10 with WSL2 (Ubuntu)

I go to `plutus-apps`,
then run `nix-shell`,
there after I run `build-and-serve-docs` from within nix-shell

See image for errors..

After build I can access a documentation link but there's no haddock documentation.

I did have a space issue yesterday that prevented some file from being written, is there maybe a way to "clear cache" and rebuild docs ..

*Is there maybe another way I can build the haddock docs, or can I access the docs elsewhere?*

[![build-and-serve-docs](https://i.sstatic.net/Rkonl.png)](https://i.sstatic.net/Rkonl.png)

[![hosted-docs-missing-haddock](https://i.sstatic.net/1Y457.png)](https://i.sstatic.net/1Y457.png)ck.imgur.com/Rkonl.png

**Tags:** plutus-pioneer-program, nix-shell, documentation
> **Comments:**
> **username_1**: Are you on the right revision for week 1? You can check with git rev-parse HEAD. It should be 4114...5c8a  
> **username_0**: Yes thanks - checked that - am on commit 41149926c108c71831cfe8d244c83b0ee4bf5c8a  
> **username_2**: This sounds like corruption due to running out of disk space to me. Can you run `nix-collect-garbage -d`, re-enter the nix-shell and run that command again?  

---

## 1 answers

### Answer by username_3 on 2022-01-23. Score: 1

Bro, it happened to me just now.

It was because I was in the wrong directory
you have to call this from the **plutus-apps** root directory:

You said you are already at this directory but could you please double check?

This is correct:

> [nix-shell:/mnt/c/me/Dev/plutus/**plutus-apps**]$ build-and-serve-docs

Incorrect:

> [nix-shell:/mnt/c/me/Dev/**plutus**]$ build-and-serve-docs


---

