Closed danwos closed 1 year ago
Maybe one of the reasons is this if-statement in python.js
?:
https://github.com/vscode-restructuredtext/vscode-restructuredtext/blob/c6a6b46a5168492cd30d4244ed547cda0cf56275/src/util/python.ts#L129-L135
Inside this if-statement the esbonio installation is happening, so when showInformation
is false, this installation will never happen.
And showInformation
is set to false, when checkEsbonio()
gets called in client.js
:
https://github.com/vscode-restructuredtext/vscode-restructuredtext/blob/c6a6b46a5168492cd30d4244ed547cda0cf56275/src/language-server/client.ts#L239
I'm new to TypeScript and this extension, so maybe I misinterpret some stuff here.
But what is the scenario where showInformation
is set to true
and Esbonio gets installed?
This is by design when you tried to debug the source code,
https://docs.restructuredtext.net/articles/development
The esbonio
Python package was uninstalled, because the extension would like you to debug with esbonio source code instead.
Thanks for the help.
And yes, the problematic part is this config line in user/workspace setinngs.json
:
"esbonio.server.sourceFolder": "/Users/someuser/esbonio/lib/esbonio"
If this is set, esbonio gets uninstalled and no other installation action gets invoked for needed packages.
I figured out that the configuration in VsCode was misinterpreted/not carefully read by me and other users.
Source Folder
sounds like the folder of the Sphinx project, as Sphinx calls it also like that. (I know reading the description would help ;) )
However, this option is not as important as Build Dir
or Conf Dir
, which show up after Source Dir
at the end of all other esbonio configs.
Maybe we can:
Build Dir
and Conf Dir
near the beginning of the esbonio configs.Source Dir
to Source Code Folder
, which makes clear that it has nothing to do with documentation sources.I know, not an important issue, but may reduce confusion and some related issues in the future :)
Ohh ok, understood the sorting now. First comes all server-related stuff, then the Sphinx configuration. From the data logic this is fine, but as a user, I normally need to configure the following only to get esbonio running:
Expected behavior
During VsCode startup:
Actual behavior
During VsCode startup:
Detailed steps
I noticed, that esbonio gets deinstalled when the esbonio version is
>= 15.00
.But even when I install an older version, it does not work. And RestructuredText never asks me to install esbonio, if it can't be found.
Extension information
v189.3.0 and latest from repo
Visual Studio Code information
1.77.3
Operating system information
linux
Python information
3.10, 3.11
Sphinx information
not needed for the bug
Contents of conf.py
No response
Relevant log output
RestructuredText Log
Esbonio Log