question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find master file when only_build_toc_files is enabled

See original GitHub issue

Describe the bug

I’d like to use the new only_build_toc_files setting which looks like a good feature, however it is not working as I expected.

To Reproduce

My original _config.yml file looks like

exclude_patterns: [
    # a bunch of glob patterns here
]
only_build_toc_files: false # TODO: enable this setting 

execute:
    execute_notebooks: off

sphinx:
    config:
        suppress_warnings: misc.highlighting_failure
        mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

When I change only_build_toc_files to true I get an error sphinx.errors.SphinxError: master file /Users/paddy/git_repos/course_mlbd/index.md not found but that file index.md is there and is in my _toc.yml as - file: index.md.

Expected behavior

My understanding is this new config just determines what is built which should be only the file specified in _toc.yml. Just to check that to stop executing a notebook it would still need to be in exclude_patterns?

Environment

  • Python Version [e.g. 3.7.1]: 3.8.5
  • Package versions or output of jupyter-book --version: 0.9.1
  • Operating System: macOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alex-treebeardcommented, Feb 5, 2022

Yes I believe the referenced PR fixed this bug

1reaction
alex-treebeardcommented, Mar 3, 2021

Thanks for the reports, I’m going to take a look at this on Saturday to see if we can reduce friction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cant find master file - MSDN - Microsoft
I have created a virtual dir on my host and my website project cant find the masterfile which is in the same dir...
Read more >
Plugin couldnt find the correct version of the master file? - Reddit
"One or more plugins could not find the correct versions of the master files they depend on. Errors may occur during load or...
Read more >
Error: can't find a datamodel file for 'Masterfile' in ... - GitHub
Hello, I was trying to build a local installation of Mfannot by following the instructions written in the README file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found