lean-lsp-mcp 0.10.0__tar.gz → 0.10.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lean_lsp_mcp-0.10.0/src/lean_lsp_mcp.egg-info → lean_lsp_mcp-0.10.1}/PKG-INFO +1 -1
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/pyproject.toml +1 -1
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp/server.py +1 -1
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp/utils.py +3 -1
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1/src/lean_lsp_mcp.egg-info}/PKG-INFO +1 -1
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/tests/test_logging.py +1 -1
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/LICENSE +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/README.md +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/setup.cfg +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp/__init__.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp/__main__.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp/client_utils.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp/file_utils.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp/instructions.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp/search_utils.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp.egg-info/SOURCES.txt +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp.egg-info/dependency_links.txt +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp.egg-info/entry_points.txt +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp.egg-info/requires.txt +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/src/lean_lsp_mcp.egg-info/top_level.txt +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/tests/test_editor_tools.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/tests/test_misc_tools.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/tests/test_project_tools.py +0 -0
- {lean_lsp_mcp-0.10.0 → lean_lsp_mcp-0.10.1}/tests/test_search_tools.py +0 -0
|
@@ -529,7 +529,7 @@ def run_code(ctx: Context, code: str) -> List[str] | str:
|
|
|
529
529
|
abs_path = lean_project_path / rel_path
|
|
530
530
|
|
|
531
531
|
try:
|
|
532
|
-
with open(abs_path, "w") as f:
|
|
532
|
+
with open(abs_path, "w", encoding="utf-8") as f:
|
|
533
533
|
f.write(code)
|
|
534
534
|
except Exception as e:
|
|
535
535
|
return f"Error writing code snippet to file `{abs_path}`:\n{str(e)}"
|
|
@@ -16,7 +16,9 @@ class OutputCapture:
|
|
|
16
16
|
self.captured_output = ""
|
|
17
17
|
|
|
18
18
|
def __enter__(self):
|
|
19
|
-
self.temp_file = tempfile.NamedTemporaryFile(
|
|
19
|
+
self.temp_file = tempfile.NamedTemporaryFile(
|
|
20
|
+
mode="w+", delete=False, encoding="utf-8"
|
|
21
|
+
)
|
|
20
22
|
self.original_stdout_fd = os.dup(sys.stdout.fileno())
|
|
21
23
|
self.original_stderr_fd = os.dup(sys.stderr.fileno())
|
|
22
24
|
os.dup2(self.temp_file.fileno(), sys.stdout.fileno())
|
|
@@ -19,7 +19,7 @@ async def _collect_logs(
|
|
|
19
19
|
env = _server_environment(repo_root)
|
|
20
20
|
env.update(env_overrides)
|
|
21
21
|
|
|
22
|
-
with tempfile.TemporaryFile(mode="w+") as errlog:
|
|
22
|
+
with tempfile.TemporaryFile(mode="w+", encoding="utf-8") as errlog:
|
|
23
23
|
server = StdioServerParameters(
|
|
24
24
|
command=sys.executable,
|
|
25
25
|
args=["-m", "lean_lsp_mcp", "--transport", "stdio"],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|