Commit Graph
1302 Commits
Author SHA1 Message Date
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
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
MischaPanch 090a22cf05 Minor improvements in readme and changelog 2025-08-08 14:05:52 +02:00
965ecc58b2 Enhance Solargraph integration: Rails detection, exclude patterns, and error handling (#439)
* Add Bundler support for Ruby projects

This change enhances the Solargraph language server implementation to properly support Ruby projects using Bundler with vendor/bundle configurations.

Key improvements:
- Detects Bundler projects by checking for Gemfile existence
- Supports both 'bin/bundle' and 'bundle' commands
- Checks Gemfile.lock for solargraph availability
- Uses 'bundle exec solargraph' when appropriate
- Provides clear error messages for missing solargraph in Bundler projects
- Maintains backward compatibility with non-Bundler projects

Fixes permission issues encountered with rbenv/system-managed Ruby installations
when trying to install gems globally.

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

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

* Add timeout configuration for Solargraph language server

This change adds proper timeout handling to the Solargraph Ruby language server
to address initialization timeout issues, especially in Bundler environments.

Key improvements:
- Set 120-second request timeout for LSP requests and initialization
- Add 60-second server readiness timeout with graceful fallback
- Enhanced logging for timeout scenarios
- Better handling of slow initialization in large projects or Bundler environments

This resolves connection timeout issues where Solargraph takes longer than
the default 30-second MCP timeout to fully initialize and become ready.

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

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

* I've enhanced the Ruby language support in SolidLSP to bring it up to par with the Python implementation, as you requested.

Here are the key changes I made:

1.  **Enhanced Solargraph Initialization:** I updated the `solargraph.py` language server to use a more reliable event-based mechanism to wait for the server to be ready, similar to `pyright_server.py`. This replaces the previous timeout-based approach, reducing the likelihood of race conditions and improving reliability.

2.  **Improved Initialization Parameters:** The initialization request sent to the Solargraph server now includes a comprehensive set of client capabilities, mirroring the Python implementation. This enables more advanced features and is expected to improve the quality and consistency of the server's responses.

These changes make the Ruby language support more robust and feature-rich without altering the existing tests.

* Enhance Ruby language support to match Python implementation

- Add comprehensive Ruby/Rails exclude patterns for better performance
- Implement Rails project detection with automatic configuration
- Enhance error handling for Ruby, Bundler, and Solargraph installation
- Add Ruby version compatibility checks with warnings for old versions
- Improve directory ignoring for Ruby-specific folders
- Add detailed installation instructions for multiple Ruby managers (rbenv, RVM, asdf)

These improvements bring Ruby language server support up to par with Python,
providing better performance, error messages, and project detection.

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

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

* Fix Ruff linting error: properly separate string literals

Resolves ISC001 'Implicitly concatenated string literals on one line' by
explicitly separating the f-string and regular string literal in the
error message formatting.

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

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

* Fix Black/Ruff formatting conflict: unify error message string

Combines the f-string and literal string into a single unified string to
resolve the conflict between Black formatter and Ruff ISC001 rule.

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

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

* Optimize initializationOptions: remove redundant settings

Remove duplicate settings that match Solargraph defaults:
- diagnostics: true (default: true)
- completion: true (default: true)
- hover: true (default: true)
- formatting: true (default: false, but user preference)

Keep only essential exclude patterns for performance improvement.
This addresses reviewer feedback about unnecessary option duplication.

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

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

* Optimize Ruby language server capabilities configuration

Based on reviewer feedback in PR #439, optimize the Ruby language server
implementation by removing redundant LSP client capabilities that duplicate
Solargraph's default behavior. This maintains essential functionality while
reducing initialization complexity.

Key optimizations:
- Removed redundant textDocument capabilities that match Solargraph defaults
- Kept only essential capabilities: workspaceEdit, hierarchicalDocumentSymbolSupport, and symbolKind
- Maintained all existing exclude patterns and error handling improvements
- Preserved Rails project detection and Ruby-specific optimizations

The optimized configuration reduces from ~30 lines of capabilities to a minimal
essential set while maintaining full Ruby language server functionality.

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

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

* Add CHANGELOG entry for Ruby language server enhancements

Document the comprehensive Ruby/Solargraph improvements from PR #439:
- Automatic Rails project detection
- Ruby/Rails-specific exclude patterns for performance
- Enhanced error handling with Ruby manager support
- Improved LSP capability negotiation
- Better installation error messages

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

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-08-08 13:54:35 +02:00
Dominik Jain 79fec25b9c Merge pull request #425 from oraios/subprocess-kwargs
Apply platform-specific default kwargs to subprocess calls
2025-08-08 13:32:24 +02:00
Michael Panchenko fa371d26de Typo in readme 2025-08-08 10:34:05 +02:00
KAWASHIMA Yoshiyuki a0f09f729e Remove duplicate Swift 2025-08-08 16:35:50 +09:00
Dominik Jain 9de7a99822 Update TOC [skip ci] 2025-08-08 01:33:01 +02:00
Michael Panchenko b42f3c8d12 Update README.md, minor [ci skip] 2025-08-08 01:32:34 +02:00
Michael Panchenko 9ae5ee6411 Merge pull request #401 from oraios/update_readme
Update readme
2025-08-08 01:24:50 +02:00
Akira TSURUDA 50d5abc498 feat: Expand Ruby language server test coverage (#438) 2025-08-08 01:24:19 +02:00
Michael Panchenko db1c020ba2 Added demo video 2025-08-08 01:16:59 +02:00
MischaPanch 684f191845 Updated readme, addressed comments 2025-08-08 01:13:32 +02:00
MischaPanch 70e0665d28 Enhanced listing command 2025-08-08 01:07:29 +02:00
Alleo Indong f12547d55a Added dark/light mode theme switcher to dashboard (#435) 2025-08-08 00:40:31 +02:00
Michael Panchenko a99ad802ef Merge pull request #437 from oraios/feat/support-swift 2025-08-08 00:20:27 +02:00
MischaPanch 4fe88b1817 Revert back to custom code for installing swift 2025-08-08 00:00:21 +02:00
MischaPanch 80ff428012 Install xtools explictly after swift install action 2025-08-07 23:33:29 +02:00
MischaPanch b0032ddf9a Install swift with GH action instead of custom code 2025-08-07 22:33:48 +02:00
MischaPanch d41ca01513 Sleep before requesting references, not after start 2025-08-07 22:21:14 +02:00
MischaPanch 6d28c7d722 Minor simplification of sourcekit_lsp.py, added sleeping at startup 2025-08-07 22:06:35 +02:00
MischaPanch 82a4c593ac Merge remote-tracking branch 'origin/main' 2025-08-07 17:37:35 +02:00
MischaPanch 68c5deeb1a Add missing closure-lsp dependency for osx-x64 2025-08-07 17:37:27 +02:00
Dominik Jain 699fd46a72 Merge pull request #433 from oraios/ci/check-formatting
Add formatting check in CI
2025-08-07 14:06:30 +02:00
MischaPanch 5236ffe2b6 Merge branch 'main' into feat/support-swift
# Conflicts:
#	.github/workflows/pytest.yml
#	pyproject.toml
#	src/solidlsp/ls.py
#	src/solidlsp/ls_config.py
2025-08-07 13:57:49 +02:00
Dominik Jain dc5be9fad4 Ignore ruff UP045 2025-08-07 13:41:45 +02:00