Closed chausner closed 8 months ago
Can reproduce this but I have no idea what's the cause either. Let's see if anyone can find out more.
If there is any way I can get more detailed error logs, please let me know.
I have the exact same issue, on three different computers...
Is there at least a workaround? For example how to install the "Snooty language server" manually and check that it is working?
I have the same problem.
Is there at least a workaround? For example how to install the "Snooty language server" manually and check that it is working?
I have the same problem.
The only workaround I know is to not select a virtual environment in VS Code.
I looked further into this and it seems there might be more than one root cause for this issue. The IndexError: list index out of range
happens inside of the snooty language server. It occurs because snooty searches the whole workspace root recursively for RST files (.rst, .txt) but in my case, my documentation lies in a subfolder docs/sphinx
. Even though I have configured the confPath
setting to {workspaceDir}/docs/sphinx
, this path is not passed to the language server. When snooty searches the whole workspace dir, it picks up a lot of unrelated .txt files and tries to process them, one of them making it crash with a IndexError
.
I'm really following this thread, hoping for a solution 😊
Same (very annoying) issue here, also following this thread and hoping for a solution 🤞.
I have the same (very annoying) issue here. Hoping for a solution. Any update??
I have this same issue here. Also hoping for a solution.
it's making my adoption of rst not good.
After switching to esbonio this issue seems to have been resolved. At least on my Ubuntu 20.04 esbonio works fine with venv (except reporting errors for files under venv
folder).
Please upgrade to release 176.0.0 and test again.
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 extension should work correctly when a Python virtual environment is selected in VS Code.
Actual behavior
After initial loading of the workspace, the message
is shown. After clicking on Install, about 5 seconds later, the following three messages are shown:
When I click on "Go to output", an empty log is shown for the vscode-restructuredtext extension.
When closing VS Code and reopening the workspace, the same error messages are shown again, including the first message that claims that Snooty language server was not installed.
Detailed steps
index.rst
in VS Code. The vscode-restructuredtext extension should now show the error messages above.Extension information
167.0.0
Visual Studio Code information
latest
Operating system information
Ubuntu 20.04
Python information
3.8
Sphinx information
4.2.0
Contents of conf.py
Relevant log output
No response