Closed mgrosvenor closed 8 months ago
Same here. By accident I can report, that there are some combinations that will work as well, something like confDir is ".." from buildDir and srcDir is ".." from confDir. But I'm not sure which conditions needs to be fulfilled exactly. It's best to fix this :-)
As already mentioned, what helps for now is: put conf.py into srcDir and set confDir = srcDir.
put conf.py into srcDir and set confDir = srcDir.
Unfortunately this is not an option for me. This is how I found the bug.
The team I'm working with has put the conf.py in a place different to the src folder. They have reasons for doing this. I cannot get them to change their reasons simply because my editor doesn't play nicely :-(
I've proposed a fix for this issue in PR #403.
As a work around, I have manually edited the plugin JS to replace confDir with srcDir. This has fixed the issue, though it's not ideal to have an out of tree fix.
Starting from version 190.1.17, this extension no longer performs live preview but recommends the Esbonio extension to be used instead. Close this issue now.
Expected behavior
The configuration directory (
confDir
) is not always at the root of the document tree. This is why it is provided as a configuration option (and is distinct fromsrcDir
). However, the preview generator still makes this assumption. The expected behaviour is that preview generation will depend onsrcDir
instead.Actual behavior
If the
confDir
is not at the root of the document tree, incorrect paths are generated and previewer fails with an error.Detailed steps
build a document tree as follows:
Try to preview
example.rst
it will fail.Extension information
189.1.0 (but also fails on 190)
Visual Studio Code information
1.70.2
Operating system information
macOS
Python information
3.8
Sphinx information
5.2
Contents of conf.py
Relevant log output