v4rgas
94e76db1d4
Fix runtime dependency check in DartLanguageServer setup
2025-07-09 15:12:14 -04:00
Dominik Jain
34db0f1446
Make ReadFileTool independent of language server, adding a read function in Project
2025-07-09 20:10:03 +02:00
Dominik Jain
edb07bc823
Move class Project to new module serena.project
2025-07-09 20:05:59 +02:00
Dominik Jain
8511888760
Rename module ls_tools -> symbol_tools
...
(They are no longer limited to LS-based tools, as the editing tools can use a different underlying CodeEditor)
2025-07-09 20:05:59 +02:00
Dominik Jain
021a6b0831
JetBrainsSymbol: Use line/column as directly returned by client
2025-07-09 20:05:59 +02:00
Dominik Jain
3873ca3506
Add CodeEditor creation to Component/Tool (switching between JetBrains- and LS-based variants)
2025-07-09 20:05:59 +02:00
Dominik Jain
e989d1f87a
Implement JetBrainsCodeEditor
2025-07-09 20:05:59 +02:00
Dominik Jain
19b9bc4e3f
Introduce CodeEditor abstraction, removing all editing functions from SymbolManager
...
and adding LanguageServerCodeEditor as a specialization
2025-07-09 17:20:20 +02:00
Dominik Jain
7ffca9b3cb
Add "type: ignore" to untyped inner function
2025-07-09 12:59:16 +02:00
Dominik Jain
bd68883d27
Split history src/serena/symbol.py to src/serena/code_editor.py - restore name of source-file
2025-07-09 11:32:08 +02:00
Dominik Jain
f70f9ff202
Split history src/serena/symbol.py to src/serena/code_editor.py - resolve conflict and keep both files
2025-07-09 11:32:07 +02:00
Dominik Jain
40743d19ad
Split history src/serena/symbol.py to src/serena/code_editor.py - rename source-file to git-split-temp
2025-07-09 11:32:07 +02:00
Dominik Jain
4d7f97bb0c
Split history src/serena/symbol.py to src/serena/code_editor.py - rename file to target-name
2025-07-09 11:32:06 +02:00
Dominik Jain
955c717c3f
Add JetBrainsGetSymbolsOverviewTool
2025-07-09 11:14:43 +02:00
Michael Panchenko
c61ea16870
Merge pull request #292 from almontasser/patch-1
...
Add rust_analyzer RuntimeDependency for Linux Arm64
2025-07-08 16:43:25 +02:00
Mahmoud Almontasser
51392f4800
Add rust_analyzer RuntimeDependency for Linux Arm64
2025-07-08 15:38:24 +02:00
Michael Panchenko
09b627fd16
Typing, minor
2025-07-08 13:59:42 +02:00
Michael Panchenko
a78fe030e8
Merge pull request #289 from jjshanks/patch-1
...
Update claude code mcp slash command for loading
2025-07-07 10:39:43 +02:00
Joshua Shanks
2dd557d9ee
Update claude code mcp slash command for loading
...
```
> /mcp__serena__initial_instructions
⎿ You are a professional coding agent concerned with one particular codebase. You have
access to semantic coding tools on which you rely heavily for all your work, as well as collection of memory
files containing general information about the codebase. You operate in a frugal and intelligent manner, always
… +186 lines (ctrl+r to expand)
● I'm ready to help you with any coding tasks in the Serena codebase, jjshanks. I have access to semantic code analysis tools and can work
on modifications, analysis, or any other development tasks you need. What would you like me to work on?
```
2025-07-06 17:43:23 -07:00
Michael Panchenko
1691e359c0
Alternative to typescript-language-server
2025-07-07 01:02:26 +02:00
Michael Panchenko
06c3ed4459
Alternative to typescript-language-server
2025-07-07 00:58:31 +02:00
Michael Panchenko
ab9fc74b64
Trigger CI
2025-07-07 00:37:18 +02:00
Michael Panchenko
194ff3bd69
Merge branch 'main' into codex/add-analytics-to-serena-dashboard
...
# Conflicts:
# src/serena/agent.py
2025-07-07 00:27:20 +02:00
Michael Panchenko
532a04591e
GH: Use static cache keys
2025-07-07 00:17:56 +02:00
Michael Panchenko
f014682830
GH: removed unnecessary condition on ci skip
...
github checks for that anyway
2025-07-06 23:52:32 +02:00
Michael Panchenko
c8d79786e4
GH: cache gopls and language server deps. Remove terraform-ls intallation
...
terraform-ls is installed on the fly
2025-07-06 23:48:43 +02:00
Michael Panchenko
3e1b7e1f56
Merge pull request #265 from oraios/refactoring/simplify_ls_setup
...
Refactoring/simplify ls setup
2025-07-06 23:33:01 +02:00
Joshua Shanks
f76ed700fa
Fix X11/XCB crash when running MCP server in empty directories ( #278 )
...
Summary
Fixes X11/XCB crash when running serena-mcp-server in directories without source files
Adds headless environment detection to prevent GUI operations in SSH/WSL/Docker environments
Improves error messages to provide clear guidance when no source files are found
Problem
When running serena-mcp-server --context ide-assistant --project /empty/dir in a headless environment (SSH, WSL, Docker), the application would crash with X11/XCB errors:
[xcb] Unknown sequence number while appending request
[xcb] You called XInitThreads, this is not your fault
[xcb] Aborting, sorry about that.
python: ../../src/xcb_io.c:157: append_pending_request: Assertion `\!xcb_xlib_unknown_seq_number' failed.
Root Cause
Empty directories cause ProjectConfig.autogenerate() to raise a ValueError
The exception handler attempts to show a GUI error dialog using tkinter
In headless environments, tkinter crashes with X11/XCB errors
Solution
Headless Detection: Added is_headless_environment() to detect when running without a display
Skip GUI in Headless: Modified show_fatal_exception_safe() to skip GUI attempts in headless environments
Better Error Messages: Improved the error message for empty projects with clear instructions
2025-07-06 23:21:41 +02:00
Michael Panchenko
6c48a4da20
Merge branch 'main' into refactoring/simplify_ls_setup
...
# Conflicts:
# src/solidlsp/ls.py
2025-07-06 23:16:42 +02:00
Michael Panchenko
1f38ec5f7b
Format, removed unused vars
2025-07-06 23:15:33 +02:00
Michael Panchenko
1c2492c63c
Typo
2025-07-06 22:23:31 +02:00
Michael Panchenko
49679c9318
TF LS: fixed method order execution
...
Previously a method relying on self.logger being set was called before it was set
2025-07-06 22:23:25 +02:00
Michael Panchenko
3981f021c6
Minor simplification of tf LS, formatting
...
Also fixed call to terraform.exe on non-windows platforms
2025-07-06 22:23:21 +02:00
Yen
1df9732390
feature/terraform language server support ( #277 )
...
Adds terraform support
2025-07-06 22:23:18 +02:00
Michael Panchenko
a24dcea427
Formatting, removed unused vars and imports
2025-07-06 22:23:17 +02:00
Michael Panchenko
5102a38fbe
Don't include relative_path in symbol's children dict representation
2025-07-06 22:23:07 +02:00
Dominik Jain
bb595eb7e7
Refine runtime dependency helpers ( #286 )
2025-07-06 22:10:11 +02:00
Dominik Jain
e306be796f
Pythonify responses from JetBrains plugin server (camelCase -> snake_case)
2025-07-06 20:15:53 +02:00
Michael Panchenko
aa0c0e5373
Minor fixes in tf download, simplifications in tf detection
2025-07-06 18:59:51 +02:00
Michael Panchenko
03745a9f52
Typo in import
2025-07-06 18:38:54 +02:00
Michael Panchenko
3eba4c4a1c
Refactoring: use ls_resources_dir in all other LS
2025-07-06 18:36:44 +02:00
Michael Panchenko
7e06148648
Refactoring: added base method ls_resources_dir, used in C# LS
2025-07-06 18:28:22 +02:00
Michael Panchenko
45541e2ea2
Merge branch 'refs/heads/main' into refactoring/simplify_ls_setup
2025-07-06 17:58:35 +02:00
Michael Panchenko
b2d6d33cbf
Typo
2025-07-06 17:58:13 +02:00
Michael Panchenko
75afabb02f
Merge branch 'main' into refactoring/simplify_ls_setup
2025-07-06 17:48:30 +02:00
Michael Panchenko
caa25759e4
TF LS: fixed method order execution
...
Previously a method relying on self.logger being set was called before it was set
2025-07-06 17:48:19 +02:00
Michael Panchenko
790f17711b
Inlined TF params and runtime deps
2025-07-06 17:35:57 +02:00
Michael Panchenko
1af8748f6f
Merge branch 'main' into refactoring/simplify_ls_setup
2025-07-06 17:28:38 +02:00
Michael Panchenko
65975f4c40
Minor simplification of tf LS, formatting
...
Also fixed call to terraform.exe on non-windows platforms
2025-07-06 17:27:48 +02:00
Yen
ab24304ceb
feature/terraform language server support ( #277 )
...
Adds terraform support
2025-07-06 17:15:54 +02:00