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

Fix write EPIPE error #75

Merged
merged 6 commits into from
May 27, 2019
Merged

Fix write EPIPE error #75

merged 6 commits into from
May 27, 2019

Conversation

nokome
Copy link
Member

@nokome nokome commented May 27, 2019

The issue was reported with respect to converting to HTML but it also occurs when converting to JSON.

$ npx ts-node --files src/cli ./tests/issues/74-write-epipe.docx --to json

Error: write EPIPE
    at WriteWrap.afterWrite (net.js:836:14)

This suggests it's a problem within read and this issue suggest that it is a problem with use of stdin of stdout within pandoc.run.

@nokome
Copy link
Member Author

nokome commented May 27, 2019

@beneboy This fixes #74. Feel free to test this branch on other files if you like. Once you're happy with it, and the CI's are green, could you do a merge to trigger a new build and get a new binary release.

@nokome
Copy link
Member Author

nokome commented May 27, 2019

Doh! Now, it's passing on Linux but failing on Mac and Windows with the original error: https://travis-ci.org/stencila/convert/jobs/537585491#L171

@codecov-io
Copy link

codecov-io commented May 27, 2019

Codecov Report

Merging #75 into master will decrease coverage by 0.15%.
The diff coverage is 84.37%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
- Coverage   92.47%   92.32%   -0.16%     
==========================================
  Files          24       24              
  Lines        2074     2085      +11     
  Branches      542      547       +5     
==========================================
+ Hits         1918     1925       +7     
- Misses        149      153       +4     
  Partials        7        7
Impacted Files Coverage Δ
src/tdp.ts 71.2% <0%> (ø) ⬆️
src/gdoc.ts 88.41% <100%> (ø) ⬆️
src/pandoc.ts 91.84% <100%> (+0.04%) ⬆️
src/index.ts 100% <100%> (ø) ⬆️
src/html.ts 98.43% <100%> (ø) ⬆️
src/yaml.ts 100% <100%> (ø) ⬆️
src/json5.ts 100% <100%> (ø) ⬆️
src/json.ts 100% <100%> (ø) ⬆️
src/vfile.ts 86.48% <66.66%> (-10.07%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c30ec8b...e248ce7. Read the comment docs.

@nokome nokome requested a review from beneboy May 27, 2019 03:54
Copy link
Contributor

@beneboy beneboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@beneboy beneboy merged commit 0205f39 into master May 27, 2019
@beneboy beneboy deleted the 74-write-epipe branch May 27, 2019 04:14
@stencila-ci
Copy link
Collaborator

🎉 This PR is included in version 0.36.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 this pull request may close these issues.

4 participants