Skip to content

marimo-lsp/vscode extension can't create a connection to the server due to inaccessible index #626

Description

@viseryon

Describe the bug

When starting, the marimo extension will send requests to pypi for packages like pygls or marimo. However, I work in corporate environment where we use internal package index (PyPi proxy/mirror), which is the only allowed index. This causes all requests to fail and extension to not work at all.

please advice what can I do to make the extension work properly :)

marimo extension version 0.13.5

in pyproject.toml file I set uv to use our index via

[[tool.uv.index]]
url = "https://repo.work.pl/repository/proxy-pypi.org/simple"

but marimo doesn't respect this setting.

Is there a way to add a setting to marimo to point it to a desired index? In pyproject.toml maybe?

I also attach marimo outputs. Let me know if you need anything else. Thanks

marimo
2026-07-16 10:05:25.122 [info] Using bundled uv: c:\Users\me\.vscode\extensions\marimo-team.vscode-marimo-0.13.5-win32-x64\bundled\libs\bin\uv.exe 0.11.3 (45da18ac3 2026-04-01)
2026-07-16 10:05:25.122 [info] No source resolved a binary, using fallback: uv install [server=ty, source=uv install]
2026-07-16 10:05:25.122 [info] Language server started [server=ruff, version=0.15.21]
2026-07-16 10:06:58.608 [warning] Failed to sync theme [error={"exec":{"command":"c:\\Users\\me\\.vscode\\extensions\\marimo-team.vscode-marimo-0.13.5-win32-x64\\bundled\\libs\\bin\\uv.exe","args":["tool","run","--python","3.13","--from","c:\\Users\\me\\.vscode\\extensions\\marimo-team.vscode-marimo-0.13.5-win32-x64\\dist\\marimo_lsp-0.1.0","marimo-lsp"]},"cause":{"code":-32097},"stderr":"error: Request failed after 3 retries in 47.3s\n  Caused by: Failed to fetch: `https://pypi.org/simple/pygls/`\n  Caused by: error sending request for url (https://pypi.org/simple/pygls/)\n  Caused by: client error (Connect)\n  Caused by: operation timed out","exit":{"code":2,"signal":null},"_tag":"LanguageClientStartError"}]
marimo (uv)
Using CPython 3.13.12
error: Request failed after 3 retries in 47.6s
  Caused by: Failed to fetch: `https://pypi.org/simple/ty/`
  Caused by: error sending request for url (https://pypi.org/simple/ty/)
  Caused by: client error (Connect)
  Caused by: operation timed out
marimo (lsp)
2026-07-16 10:06:11.872 [error] error: Request failed after 3 retries in 47.3s
2026-07-16 10:06:11.872 [error]   Caused by: Failed to fetch: `https://pypi.org/simple/pygls/`
2026-07-16 10:06:11.872 [error]   Caused by: error sending request for url (https://pypi.org/simple/pygls/)
2026-07-16 10:06:11.872 [error]   Caused by: client error (Connect)
2026-07-16 10:06:11.872 [error]   Caused by: operation timed out
2026-07-16 10:06:11.895 [error] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
2026-07-16 10:06:11.895 [info] Connection to server got closed. Server will restart.
2026-07-16 10:06:11.896 [error] Marimo Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 

Environment

Details
marimo VS Code Extension Diagnostics
=====================================

Language Server (LSP):
	UV Bin: Bundled (c:\Users\me\.vscode\extensions\marimo-team.vscode-marimo-0.13.5-win32-x64\bundled\libs\bin\uv.exe)
	UV: 0.11.3 (45da18ac3 2026-04-01) ✓
	Using bundled marimo-lsp via uvx

Python Extension:
	Interpreter: c:\Users\me\Documents\my_project\.venv\Scripts\python.exe
	Version: 3.11.4 (main, Jul 26 2023, 12:14:30) [MSC v.1929 64 bit (AMD64)]
	Environment: VirtualEnvironment (.venv)

Python Language Server (ty):
	Status: failed ✗
	Error: Failed to start language server

Ruff Language Server:
	Status: running ✓
	Version: 0.15.21
	Binary: CompanionExtension/bundled (charliermarsh.ruff, c:\Users\me\.vscode\extensions\charliermarsh.ruff-2026.60.0-win32-x64\bundled\libs\bin\ruff.exe)

Extension Configuration:
	Version: 0.13.5 
	UV integration disabled: false 

System Information:
	Host: desktop 
	IDE: Visual Studio Code 
	IDE version: 1.127.0 
	Platform: win32 
	Architecture: x64 
	Node version: v24.15.0 

Common Issues:
	1. If notebooks won't open:
		- Check Python interpreter is selected
		- Ensure marimo is installed
		- Check 'marimo-lsp' output channel for errors
	2. If features are missing:
		 - Ensure marimo version is >= 0.23.3
		- Try reloading the window

Steps to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions