Description
Expected behavior
Expect Esbonio and its preview to works as it has. Nothing happens when I open the preview window at all except for the box saying "No content found"
Actual behavior
Preview windows says "no content found" and a popup in VSC says "ValueError: No Python Environment configured". I am using the same steps that have been working.
Windows 11, batch file creates a Venv and builds the website as usual. I go back into the run commands menu and deselect the python version and reselect it (my venv version) and restart the Esbonio server. It fills the log below. I could only upload a small percentage of the log because it is too long for github (greater than 65536 characters)
I did not update anything that I know of and am sure to run a requirements.txt file with the versions of everything I was using since the most recent versions of some things broke Esbonio. This is the only warning I see creating the venv and building the website (which builds correctly)
"WARNING: The candidate selected for download or install is a yanked version: 'requests' candidate (version 2.32.0 at https://files.pythonhosted.org/packages/24/e8/09e8d662a9675a4e4f5dd7a8e6127b463a091d2703ed931a64aa66d00065/requests-2.32.0-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.8))
Reason for being yanked: Yanked due to conflicts with CVE-2024-35195 mitigation". Log of Esbonio when I try to run it is below. Using v2024.17.2024100701 (pre-release) version of Microsoft's Python. I will try an older version. The release version did not work last time.
Log output
[client] Unable to resolve command lsp-devtools: Error: Command failed: command -v lsp-devtools
'command' is not recognized as an internal or external command,
operable program or batch file.
[client] Using environment C:\USERS\FRED\DOCUMENTS\PLATFORMIO\PROJECTS\DCC-EX.GITHUB.IO\VENV\SCRIPTS\PYTHON.EXE: C:\Users\Fred\Documents\PlatformIO\Projects\dcc-ex.github.io\venv\Scripts\python.exe
[client] Server start command: c:\Users\Fred\Documents\PlatformIO\Projects\dcc-ex.github.io\venv\Scripts\python.exe -S -m esbonio.server
[client] LanguageClientOptions: {
"documentSelector": [
{
"scheme": "file",
"language": "restructuredtext"
},
{
"scheme": "file",
"language": "markdown"
}
],
"outputChannel": {
"name": "Esbonio"
},
"connectionOptions": {
"maxRestartCount": 0
},
"middleware": {
"workspace": {},
"window": {}
}
}
[client] Starting Language Server
[client] sphinx/clientCreated: {
"buildCommand": [
"sphinx-build",
"-M",
"dirhtml",
"c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io\\docs",
"C:\\Users\\Fred\\AppData\\Local\\swyddfa\\esbonio\\Cache\\c7a65f76c715c9fee33c41e6aadc2eba"
],
"cwd": "c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io",
"pythonPath": [
"c:\\Users\\Fred\\.vscode\\extensions\\swyddfa.esbonio-0.95.2\\bundled\\libs\\esbonio"
]
}
[esbonio] Loaded extension 'esbonio.server.features.log'
[esbonio] Loaded extension 'esbonio.server.features.project_manager'
[esbonio] Loaded extension 'esbonio.server.features.sphinx_manager'
[esbonio] Loaded extension 'esbonio.server.features.preview_manager'
[esbonio] Loaded extension 'esbonio.server.features.directives'
[esbonio] Loaded extension 'esbonio.server.features.roles'
[esbonio] Loaded extension 'esbonio.server.features.rst.directives'
[esbonio] Loaded extension 'esbonio.server.features.rst.roles'
[esbonio] Loaded extension 'esbonio.server.features.myst.directives'
[esbonio] Loaded extension 'esbonio.server.features.myst.roles'
[esbonio] Loaded extension 'esbonio.server.features.sphinx_support.diagnostics'
[esbonio] Loaded extension 'esbonio.server.features.sphinx_support.symbols'
[esbonio] Loaded extension 'esbonio.server.features.sphinx_support.directives'
[esbonio] Loaded extension 'esbonio.server.features.sphinx_support.roles'
[esbonio] Initialising esbonio v1.0.0b7, using Python v3.10.11 on Windows-10
[esbonio] Language client: Visual Studio Code 1.94.0
[esbonio.Configuration] Looking for pyproject.toml files in: 'c:\Users\Fred\Documents\PlatformIO\Projects\dcc-ex.github.io'
[esbonio.Configuration] workspace/configuration: {
"items": [
{
"section": "esbonio"
},
{
"scopeUri": "file:///c%3A/Users/Fred/Documents/PlatformIO/Projects/dcc-ex.github.io",
"section": "esbonio"
}
]
}
[esbonio.SphinxManager] No client found, creating new subscription
[esbonio.ProjectManager] No applicable project for uri: file:///c%3A/Users/Fred/Documents/PlatformIO/Projects/dcc-ex.github.io/docs/ex-csb1/index.rst
[esbonio.ProjectManager] No applicable project for uri: file:///c%3A/Users/Fred/Documents/PlatformIO/Projects/dcc-ex.github.io/docs/ex-csb1/index.rst
[esbonio.Configuration] Workspace 'None' configuration: {
"server": {
"enabled": true,
"documentSelector": [],
"startupModule": "esbonio.server",
"excludedModules": [],
"includedModules": [],
"completion": {
"preferredInsertBehavior": "replace"
},
"enableDevTools": false,
"debug": false,
"showDeprecationWarnings": false,
"logLevel": "debug"
},
"sphinx": {
"enableDevTools": false,
"pythonPath": []
},
"preview": {
"showLineMarkers": false
},
"logging": {
"level": "debug",
"stderr": true,
"window": true,
"config": {}
},
"trace": {
"server": "off"
}
}
[esbonio.Configuration] Workspace 'file:///c%3A/Users/Fred/Documents/PlatformIO/Projects/dcc-ex.github.io' configuration: {
"server": {
"enabled": true,
"documentSelector": [],
"startupModule": "esbonio.server",
"excludedModules": [],
"includedModules": [],
"completion": {
"preferredInsertBehavior": "replace"
},
"enableDevTools": false,
"debug": false,
"showDeprecationWarnings": false,
"logLevel": "debug"
},
"sphinx": {
"enableDevTools": false,
"pythonPath": []
},
"preview": {
"showLineMarkers": false
},
"logging": {
"level": "debug",
"stderr": true,
"window": true,
"config": {}
},
"trace": {
"server": "off"
}
}
[esbonio.Configuration] ConfigurationContext(file_scope='', workspace_scope='file:///c%3A/Users/Fred/Documents/PlatformIO/Projects/dcc-ex.github.io')
[esbonio.Configuration] esbonio.sphinx: {
"enableDevTools": false,
"pythonPath": []
}
[esbonio.Configuration] SphinxConfig(enable_dev_tools=False, python_command=[], build_command=[], config_overrides={}, env_passthrough=[], cwd='c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io', python_path=[])
[esbonio.Configuration] Previous: None
[esbonio.Configuration] Current: SphinxConfig(enable_dev_tools=False, python_command=[], build_command=[], config_overrides={}, env_passthrough=[], cwd='c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io', python_path=[])
[esbonio.Configuration] ConfigChangeEvent(scope='file:///c%3A/Users/Fred/Documents/PlatformIO/Projects/dcc-ex.github.io', value=SphinxConfig(enable_dev_tools=False, python_command=[], build_command=[], config_overrides={}, env_passthrough=[], cwd='c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io', python_path=[]), previous=None)
[esbonio] Scheduled task: <Task finished name='Task-12' coro=<SphinxManager._create_or_replace_client() done, defined at c:\Users\Fred\.vscode\extensions\swyddfa.esbonio-0.95.2\bundled\libs\esbonio\server\features\sphinx_manager\manager.py:251> result=None>
[esbonio.SphinxManager] Trying path: c:\Users\Fred\Documents\PlatformIO\Projects\dcc-ex.github.io\docs\ex-csb1
[esbonio.SphinxManager] Trying path: c:\Users\Fred\Documents\PlatformIO\Projects\dcc-ex.github.io\docs
[esbonio.SphinxManager] Cwd: c:\Users\Fred\Documents\PlatformIO\Projects\dcc-ex.github.io
[esbonio.SphinxManager] Build command: ['sphinx-build', '-M', 'dirhtml', 'c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io\\docs', 'C:\\Users\\Fred\\AppData\\Local\\swyddfa\\esbonio\\Cache\\c7a65f76c715c9fee33c41e6aadc2eba']
[esbonio.SphinxManager] Client created for scope file:///c%3A/Users/Fred/Documents/PlatformIO/Projects/dcc-ex.github.io
[esbonio.SphinxManager] SphinxClient[08d41611-80e2-4c3c-b445-bc92442c8575]: None -> ClientState.Starting
[esbonio.SphinxManager] Unable to start SphinxClient: No python environment configured
Traceback (most recent call last):
File "c:\Users\Fred\.vscode\extensions\swyddfa.esbonio-0.95.2\bundled\libs\esbonio\server\features\sphinx_manager\client_subprocess.py", line 206, in start
command = get_start_command(self.config, self.logger)
File "c:\Users\Fred\.vscode\extensions\swyddfa.esbonio-0.95.2\bundled\libs\esbonio\server\features\sphinx_manager\client_subprocess.py", line 358, in get_start_command
raise ValueError("No python environment configured")
ValueError: No python environment configured
[esbonio.SphinxManager] SphinxClient[08d41611-80e2-4c3c-b445-bc92442c8575]: ClientState.Starting -> ClientState.Errored
[esbonio] Task finished: <Task finished name='Task-12' coro=<SphinxManager._create_or_replace_client() done, defined at c:\Users\Fred\.vscode\extensions\swyddfa.esbonio-0.95.2\bundled\libs\esbonio\server\features\sphinx_manager\manager.py:251> result=None>
[esbonio] Registered 'workspace/didChangeConfiguration' handler
[esbonio] Registered 'workspace/didChangeWatchedFiles' handler
[esbonio.Configuration] ConfigurationContext(file_scope='', workspace_scope='file:///c%3A/Users/Fred/Documents/PlatformIO/Projects/dcc-ex.github.io')
[esbonio.Configuration] esbonio.sphinx: {
"enableDevTools": false,
"pythonPath": []
}
[esbonio.Configuration] SphinxConfig(enable_dev_tools=False, python_command=[], build_command=[], config_overrides={}, env_passthrough=[], cwd='c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io', python_path=[])
[esbonio.Configuration] Previous: SphinxConfig(enable_dev_tools=False, python_command=[], build_command=[], config_overrides={}, env_passthrough=[], cwd='c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io', python_path=[])
[esbonio.Configuration] Current: SphinxConfig(enable_dev_tools=False, python_command=[], build_command=[], config_overrides={}, env_passthrough=[], cwd='c:\\Users\\Fred\\Documents\\PlatformIO\\Projects\\dcc-ex.github.io', python_path=[])
[esbonio.Configuration] ConfigurationContext(file_scope='', workspace_scope='')
[esbonio.Configuration] esbonio.logging: {
"level": "debug",
"stderr": true,
"config": {},
"window": true
}
[esbonio.Configuration] LoggingConfig(level='debug', format='[%(name)s] %(message)s', filepath=None, stderr=True, window=True, config={}, show_deprecation_warnings=False)
[esbonio.Configuration] Previous: None
[esbonio.Configuration] Current: LoggingConfig(level='debug', format='[%(name)s] %(message)s', filepath=None, stderr=True, window=True, config={}, show_deprecation_warnings=False)
[esbonio.Configuration] ConfigChangeEvent(scope='', value=LoggingConfig(level='debug', format='[%(name)s] %(message)s', filepath=None, stderr=True, window=True, config={}, show_deprecation_warnings=False), previous=None)
[esbonio.Configuration] ConfigurationContext(file_scope='', workspace_scope='')
[esbonio.Configuration] esbonio.preview: {
"showLineMarkers": false
}
[esbonio.Configuration] PreviewConfig(bind='localhost', http_port=0, ws_port=0, show_line_markers=False)
[esbonio.Configuration] Previous: None
[esbonio.Configuration] Current: PreviewConfig(bind='localhost', http_port=0, ws_port=0, show_line_markers=False)
[esbonio.Configuration] ConfigChangeEvent(scope='', value=PreviewConfig(bind='localhost', http_port=0, ws_port=0, show_line_markers=False), previous=None)
[esbonio] Loaded extension 'esbonio.server.features.log'
[esbonio] Scheduled task: <Task pending name='Task-14' coro=<PreviewManager.show_preview_uri() running at c:\Users\Fred\.vscode\extensions\swyddfa.esbonio-0.95.2\bundled\libs\esbonio\server\features\preview_manager\__init__.py:181>>
[esbonio.Configuration] ConfigurationContext(file_scope='', workspace_scope='')
[esbonio.Configuration] esbonio.server.completion: {
"preferredInsertBehavior": "replace"
}
[esbonio.Configuration] CompletionConfig(preferred_insert_behavior='replace')
[esbonio.Configuration] Previous: None
[esbonio.Configuration] Current: CompletionConfig(preferred_insert_behavior='replace')
[esbonio.Configuration] ConfigChangeEvent(scope='', value=CompletionConfig(preferred_insert_behavior='replace'), previous=None)
[esbonio.Configuration] ConfigurationContext(file_scope='', workspace_scope='')
[esbonio.Configuration] esbonio.server.completion: {
"preferredInsertBehavior": "replace"
}
(Optional) Settings from conf.py
No response