Commit Graph
1326 Commits
Author SHA1 Message Date
MischaPanch 4d9cd31e36 Docstring: reminder to escape appropriately in replace_regex (\\n for inserting \n) [ci skip] 2025-08-15 13:43:57 +02:00
MischaPanch 4ce25cad6b Merge branch 'main' of github.com:oraios/serena 2025-08-15 13:39:03 +02:00
MischaPanch 636009d145 Changelog [ci skip] 2025-08-15 13:38:51 +02:00
Michael Panchenko 5884e67d3b Merge pull request #490 from oraios/improve_waiting_for_cross_file_references
Improve waiting logic for cross-file references to be ready
2025-08-15 13:29:16 +02:00
MischaPanch e6ae39ab1b Fixed path in test 2025-08-15 13:28:32 +02:00
MischaPanch d4dedd5d84 Improve waiting logic for cross-file references to be ready
Now waiting only once instead of on each request, hopefully that's enough
2025-08-15 13:10:46 +02:00
Yen a066202d02 simplify bash LS integration by removing hybrid approach (#467)
Turns out that bash language server was actually doing the right thing
2025-08-15 10:43:08 +02:00
Michael Panchenko 7df16d21e5 Bump wait time for references in csharp_language_server.py 2025-08-14 21:51:22 +02:00
Riya Amemiya a597bb1715 Correct typos in variable names, constants, and documentation (#488) 2025-08-14 19:40:54 +02:00
Abdelkader Boudih bcc4a9e5d9 Better error message on FileNotFoundError (#480)
- Check if directory exists before calling validate_relative_path
- Return structured JSON error with project_root context when directory not found
- Helps LLMs understand the current working directory context in MCP

Similar to fix in commit 8464f25 for CreateTextFileTool
2025-08-14 14:42:15 +02:00
MischaPanchandClaude de173ce078 Fix gitignore pattern scoping bug for **/pattern in subdirectories
Previously, when a subdirectory .gitignore file contained patterns starting
with "**/", these patterns were incorrectly applied globally instead of being
scoped to that subdirectory's tree.

For example, if foo/.gitignore contained "**/test.txt", it would incorrectly
ignore test.txt files everywhere in the repository, including at the root
level and in other subdirectories like bar/test.txt.

The bug was in _parse_gitignore_content() where patterns starting with "**/"
were left unchanged (line 228: adjusted_pattern = line), making them global
instead of scoped.

Fixed by ensuring that even "**/pattern" gets the subdirectory prefix:
- Before: "**/test.txt" → "**/test.txt" (global)
- After: "**/test.txt" → "foo/**/test.txt" (scoped to foo/ subtree)

Added comprehensive test cases covering all gitignore pattern scenarios:
- Non-anchored patterns (foo.txt) - already worked correctly
- Anchored patterns (/foo.txt) - already worked correctly
- Double-star patterns (**/foo.txt) - was broken, now fixed
- Anchored double-star (/**/foo.txt) - already worked correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-14 12:11:24 +02:00
MischaPanch c82fab97c1 CSharp: added waiting for request_referencing and test for cross-file references 2025-08-14 12:01:58 +02:00
MischaPanch b87c8a97ee Merge branch 'main' of github.com:oraios/serena 2025-08-14 11:19:57 +02:00
MischaPanch 3484c0205a Readme, minor [ci skip] 2025-08-14 11:19:53 +02:00
Colin MollenhourandClaude 16aa8c93dd Support license key for advanced PHP LSP features. (#476)
* Add optional Intelephense license key support via INTELEPHENSE_LICENSE_KEY environment variable

- Add initializationOptions support to Intelephense LSP server
- Pass license key via licenceKey property when environment variable is set
- Update README.md and DOCKER.md documentation with new environment variable
- Fix docstring comment in _get_initialize_params method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix formatting

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-14 09:56:37 +02:00
MischaPanch 111a764b0b One more link [ci skip] 2025-08-14 00:22:01 +02:00
MischaPanch c75eed739d Typo in link [ci skip] 2025-08-14 00:18:12 +02:00
MischaPanch 181772ffd2 Config: removed replace_regex from ide-assistant and coded contexts [ci skip] 2025-08-14 00:09:59 +02:00
MischaPanch 7abaedeea7 Readme: added top-level section with summary and user feedback [ci skip] 2025-08-14 00:00:34 +02:00
Michael Panchenko 80a050bcec Create FUNDING.yml [ci skip] 2025-08-11 23:19:02 +02:00
MischaPanch b28f40ac7b Added git to docker 2025-08-11 22:39:56 +02:00
MischaPanch 71bb1f8d99 Added unzip to docker 2025-08-11 22:38:31 +02:00
Michael Panchenko d0dffab866 Merge pull request #459 from oraios/feature/better_project_indexing
Continue indexing on timeout errors, make timeout configurable in CLI
2025-08-11 22:35:28 +02:00
MischaPanch 8464f257aa Hotfix: fix create_text_file (had raised FileNotFound on new files), fix return type of the tool 2025-08-11 18:11:07 +02:00
MischaPanch 6a2458c688 Added zip to dockerfile 2025-08-11 18:11:07 +02:00
MischaPanch e4e98c7e24 Docker: add sudo and wget to image 2025-08-11 18:11:07 +02:00
Michael Panchenko 0f063dc762 Update issue templates [ci skip] 2025-08-11 10:35:26 +02:00
Michael Panchenko 53aef72961 Added issue template [ci skip] 2025-08-11 10:31:10 +02:00
MischaPanch 78b690dc92 Added codex support and instructions in readme [ci skip] 2025-08-11 09:25:06 +02:00
MischaPanch c99dd82697 Formatting 2025-08-11 09:05:25 +02:00
MischaPanch 8840164122 Continue indexing on timeout errors, make timeout configurable in CLI 2025-08-09 18:29:55 +02:00
Michael Panchenko 0f467a64da Merge pull request #454 from oraios/feature/codex_compatibility
Feature/codex compatibility
2025-08-09 17:52:32 +02:00
MischaPanch 6e1c8a4225 CLI: added health-check command [ci skip] 2025-08-09 16:47:26 +02:00
MischaPanch 33f7a9f793 Merge branch 'main' into feature/codex_compatibility 2025-08-09 16:16:47 +02:00
MischaPanch 74e5f79ba6 Make restart_language_server optional 2025-08-09 16:16:24 +02:00
MischaPanch cdc0d178f8 Remove union type annotations from tools.
Codex can't deal with them, I suspect ChatGPT will also have problems.
This leads to slightly less expressive python code, but it isn't a large problem and is worth
the extension in usability for serena.
2025-08-09 16:15:51 +02:00
MischaPanch 65544d57d4 Make restart_language_server optional 2025-08-09 16:13:43 +02:00
MischaPanch 68cc17fd41 Merge branch 'main' of github.com:oraios/serena 2025-08-09 15:05:28 +02:00
MischaPanch 3a61c999d3 Extended CLI with helper commands for debugging 2025-08-09 15:05:25 +02:00
tsukumiandtsukumi b15f3a6d4a Ignore inaccessible paths (PermissionError) in scanning of directories (#427)
* Fix an error that occurred when trying to scan an inaccessible directory

for example, when the directory permissions were set to 700.

* Fix redundant error handling

* Fix format

---------

Co-authored-by: tsukumi <tsukumijima@users.noreply.github.com>
2025-08-09 14:23:44 +02:00
MischaPanch 5a1bfa0838 Applied markdownlint, minor typos and fixes in readme [ci skip]
# Conflicts:
#	README.md
2025-08-09 14:19:33 +02:00
Gabriel Terwesten 59b2bccb26 fix: remove incorrect description of supporting directories from get_symbols_overview docs (#452)
I noticed that models often use `get_symbols_overview` on a directory only to get an error because the tool does not support directories. The issue was that the description and usage instructions for the tool incorrectly mentioned support for directories.
2025-08-09 10:56:40 +02:00
Dominik Jain 3a1d14dbf4 Merge pull request #448 from blaugold/fix-gitignore-file-discovery
fix: discover all `.gitignore` files in project
2025-08-08 20:49:10 +02:00
Gabriel Terwesten 532de363c6 Update tests 2025-08-08 19:58:27 +02:00
Gabriel Terwesten cffbb81036 fix: discover all .gitignore files in project
Before this change only `.gitignore` files at the project root and its direct subdirectories where found.
2025-08-08 19:45:40 +02:00
Gabriel Terwesten 315086d68d fix: --log-level option for serena index (#447)
The command was missing a call to `logging.configure` to actually configure logging and make the option have a visible effect.
2025-08-08 19:40:48 +02:00
MischaPanch b8daef9167 Formatting 2025-08-08 14:16:24 +02:00
Dominik Jain f106572b74 Merge pull request #446 from oraios/refactor/symbol-overview-data-structure 2025-08-08 14:11:18 +02:00
Dominik Jain a7cc0f16b5 Make overview calls return the full symbol information
instead of creating new low-level data structures.

This enables uniform handling of required conversions in our
higher-level Serena data structures

Fixes #432
2025-08-08 14:09:43 +02:00
MischaPanch ab4355e27b C# - added handler for _roslyn_projectNeedsRestore, fixes #303 2025-08-08 14:07:27 +02:00