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

purs docs --tags ctags fails occasionally #3710

Open
yihuang opened this issue Aug 2, 2019 · 1 comment
Open

purs docs --tags ctags fails occasionally #3710

yihuang opened this issue Aug 2, 2019 · 1 comment

Comments

@yihuang
Copy link

yihuang commented Aug 2, 2019

Below is the error message when it happens, the file output/Data.String.CodeUnits/docs.json is empty. Work around is to delete the file and run it again.
It happens occasionally, I've tried to delete whole output directory, but it doesn't happen again.

$ spago docs -f ctags
Generating documentation for the project. This might take a while..
purs: An internal error occurred during compilation: Failed to decode: output/Data.String.CodeUnits/docs.jsonThe input could not be parsed as JSON
aeson said: Error in $: not enough input
Please report this at https://github.com/purescript/purescript/issues
CallStack (from HasCallStack):
  error, called at src/Language/PureScript/Crash.hs:24:3 in purescript-0.13.2-6QPLI9hJaMv7vmLTEn2Yqo:Language.PureScript.Crash
  internalError, called at src/Language/PureScript/Docs/Collect.hs:120:19 in purescript-0.13.2-6QPLI9hJaMv7vmLTEn2Yqo:Language.PureScript.Docs.Collect
spago: Docs generation failed.
@hdgarrood hdgarrood changed the title purs docs --tags ctags fail occationally purs docs --tags ctags fails occasionally Feb 22, 2020
@sjpgarcia
Copy link
Contributor

I just ran spago docs -f ctags on the entire package set and was unable to reproduce this. This seems to have been fixed somewhere down the line over the past two years so I think it's fair to close this for now.

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