mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 10:16:00 +00:00
Merge branch 'main' of github.com:oraios/serena
This commit is contained in:
commit
22c3f32f78
6 files changed
+9
-8
No files matched your search
@@ -186,7 +186,7 @@ Here's how it works (see also [Agno's documentation](https://docs.agno.com/intro
|
||||
2. Install serena with the optional requirements:
|
||||
```shell
|
||||
# You can also only select agno,google or agno,anthropic instead of all-extras
|
||||
uv pip install --all-extras -e .
|
||||
uv pip install --all-extras -r pyproject.toml -e .
|
||||
```
|
||||
|
||||
3. Copy `.env.example` to `.env` and fill in the API keys for the provider(s) you
|
||||
|
||||
+5
-2
@@ -1,7 +1,11 @@
|
||||
# absolute path to the project
|
||||
project_root: /path/to/project
|
||||
|
||||
# language of the project (csharp, python, rust, java, typescript, javascript, go, or ruby)
|
||||
# Special requirements:
|
||||
# * csharp: Requires the presence of a .sln file in the project folder.
|
||||
language: python
|
||||
|
||||
# list of directories to ignore: either names (e.g. "temp") or relative paths (e.g. "build/foo")
|
||||
ignored_dirs: [".git", "temp"]
|
||||
|
||||
@@ -37,8 +41,6 @@ ignored_dirs: [".git", "temp"]
|
||||
# write_memory
|
||||
excluded_tools: []
|
||||
|
||||
|
||||
|
||||
# Whether to open a graphical window with Serena's logs (not supported on MacOS).
|
||||
# This is useful both for troubleshooting and for monitoring the tool calls,
|
||||
# especially when using the agno playground, since the tool calls are not always shown,
|
||||
@@ -49,5 +51,6 @@ excluded_tools: []
|
||||
# previous instances. This leads to multiple log windows being opened, and only the last
|
||||
# window being updated. Since we can't control how agno or Claude Desktop starts Serena, we have to live with this limitation for now.
|
||||
gui_log_window: True
|
||||
|
||||
# minimum log level for the GUI log window (10 = debug, 20 = info, 30 = warning, 40 = error)
|
||||
gui_log_level: 20
|
||||
@@ -77,7 +77,7 @@ class OmniSharp(LanguageServer):
|
||||
"ascii",
|
||||
"-z",
|
||||
"-s",
|
||||
slnfilename,
|
||||
f'"{slnfilename}"',
|
||||
"--hostPID",
|
||||
str(os.getpid()),
|
||||
"DotNet:enablePackageRestore=false",
|
||||
|
||||
@@ -213,7 +213,7 @@ class PlatformUtils:
|
||||
platform_id += "-" + libc
|
||||
return PlatformId(platform_id)
|
||||
else:
|
||||
raise MultilspyException("Unknown platform: " + system + " " + machine + " " + bitness)
|
||||
raise MultilspyException(f"Unknown platform: {system=}, {machine=}, {bitness=}")
|
||||
|
||||
@staticmethod
|
||||
def get_dotnet_version() -> DotnetVersion:
|
||||
|
||||
+1
-2
@@ -8,7 +8,6 @@ import os
|
||||
import platform
|
||||
import sys
|
||||
import traceback
|
||||
import warnings
|
||||
from abc import ABC
|
||||
from collections import defaultdict
|
||||
from collections.abc import Callable, Generator, Iterable, Iterator
|
||||
@@ -83,7 +82,7 @@ class SerenaAgent:
|
||||
else:
|
||||
log_level = project_config.get("gui_log_level", logging.INFO)
|
||||
if Logger.root.level > log_level:
|
||||
warnings.warn(f"Root logger level is higher than GUI log level; changing the root logger level to {log_level}")
|
||||
log.info(f"Root logger level is higher than GUI log level; changing the root logger level to {log_level}")
|
||||
Logger.root.setLevel(log_level)
|
||||
self._gui_log_handler = GuiLogViewerHandler(GuiLogViewer(title="Serena Logs"), level=log_level, format_string=LOG_FORMAT)
|
||||
Logger.root.addHandler(self._gui_log_handler)
|
||||
|
||||
@@ -6,7 +6,6 @@ like request_references using the test repository.
|
||||
"""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from multilspy.language_server import SyncLanguageServer
|
||||
from serena.text_utils import LineType
|
||||
|
||||
Reference in new issue
Block a user