By Lex Li
If any error happens, please follow the steps below to locate the possible causes.
Find The Logs¶
- Use “View -> Output” menu item to open Visual Studio Code OUTPUT panel.
- On the dropdown list in the upper right area of the OUTPUT panel that says “Search” by default, choose “reStructuredText” from the list to switch to reStructuredText logging page.
The logs show what compiler command line is used by this extension and which HTML is being previewed. They should indicate what might be wrong.
Use Developer Tools¶
In rare cases you need to use
Help | Toggle Developer Tools menu item to
enable Visual Studio Code’s hidden Console tab. Then when you reproduce a
certain issue, you can see relevant errors recorded.
Locate The Conf.py Folder¶
- Open Integrated Terminal in Visual Studio Code code by clicking “View | Integrated Terminal”.
- If you have
.vscode/settings.jsonin the workspace, find the value of
restructuredtext.confPathsetting. Assume its value is
cd srcat terminal to switch to the folder.
Test The Generated HTML files¶
When the make process succeeds, the generated HTML pages should present in
If you cannot find this folder or the extension indicates it cannot find
certain HTML page, then the make process might generate them at another
location. You have to set
This should be an absolute path.