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

Failing tests on windows #805

Closed
amueller opened this issue Jul 23, 2020 · 12 comments
Closed

Failing tests on windows #805

amueller opened this issue Jul 23, 2020 · 12 comments
Labels
bug Something isn't working

Comments

@amueller
Copy link
Contributor

amueller commented Jul 23, 2020

I'm trying to make a list, I'll keep editing this.

test_build_book is failing because of #583: <script src="_static/js/myjs.js"> is _static/js\myjs.js because the first half is added by sphinx which probably hardcoded the \ and the second part is what pathlib thinks paths should look like on windows.
I wonder if we can do a simple replace but that seems hacky.

'charmap' codec can't decode byte 0x9d in position 1589: character maps to <undefined> in test_build_docs0 from test_build_docs.

'charmap' codec can't encode character '\u03b8' in position 196: character maps to <undefined> in test_clean_html_latex

C:\Users\t3kci\checkout\jupyter-book\tests\books\toc\index.md:7:toctree contains reference to nonexisting document 'subfolder\\index' in test_toc_startwithlist and test_toc_withheaders and test_toc_urllink

@amueller amueller added the bug Something isn't working label Jul 23, 2020
@choldgraf
Copy link
Collaborator

Hmmm - I bet that this is where the problem is being introduced: https://github.com/executablebooks/jupyter-book/pull/583/files#diff-203e09245c463f220cf61faa8b789f18R17

I wonder if @phaustin has fixes for making Pathlib behave like *nix sometimes, and like windows other times? Maybe this is related to the posix stuff you were working on?

@amueller
Copy link
Contributor Author

amueller commented Jul 23, 2020

I thought there was more windows bugs but I think I get the same errors on linux (WSL). hrm.

@phaustin
Copy link
Contributor

phaustin commented Jul 23, 2020

that should be fixed on my sphix_toc branch here:

e909222

@choldgraf I was holding off on testing on windows until all the sphix toc moves were completed. Is it time to retry now against current master?

@amueller
Copy link
Contributor Author

@phaustin does that also fix the subfolder\\index issue?

@phaustin
Copy link
Contributor

yes, and it passes all the tests except for toc_urllink, and headers don't show up in the rendered html. I wanted to let Chris finish turning over the toc creation to sphinx before chasing those last things down.

@phaustin
Copy link
Contributor

I think rather than trying to toggle between windows and unix paths (which pathlib doesn't support) the better approach is to make every string represenation of a path posix (which is what as_posix is for)

@choldgraf
Copy link
Collaborator

@phaustin I believe that from a toctree standpoint, that should all be handled by sphinx functions etc now 👍

@phaustin
Copy link
Contributor

great, will rebase and see where we're at tomorrow

@amueller
Copy link
Contributor Author

the encoding issues are independent, though, right?

@phaustin did you work on adding windows to CI?

@phaustin
Copy link
Contributor

Yes, the encoding is seperate, and we're not having any issues, so any more utf8 problems are new bugs.
I've just been running pytest on my laptop, so no on item 2.

@amueller
Copy link
Contributor Author

Ok, I'm giving it a go at #807.

@chrisjsewell
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants