Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "java-functional-lsp"
version = "0.7.4"
version = "0.7.5"
description = "Java LSP server enforcing functional programming best practices — null safety, immutability, no exceptions"
readme = "README.md"
license = { text = "MIT" }
Expand Down
2 changes: 1 addition & 1 deletion src/java_functional_lsp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""java-functional-lsp: A Java LSP server enforcing functional programming best practices."""

__version__ = "0.7.4"
__version__ = "0.7.5"
5 changes: 3 additions & 2 deletions src/java_functional_lsp/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

logger = logging.getLogger(__name__)

REQUEST_TIMEOUT = 30.0 # seconds
REQUEST_TIMEOUT = 30.0 # seconds — per-request timeout for normal operations
_INITIALIZE_TIMEOUT = 120.0 # seconds — module-scoped init can still be slow (Maven classpath resolution)
DEFAULT_JVM_MAX_HEAP = "4g"
_STDERR_LINE_MAX = 1000

Expand Down Expand Up @@ -544,7 +545,7 @@ async def start(self, init_params: dict[str, Any], *, module_root_uri: str | Non
if self._process.stderr is not None:
self._stderr_task = asyncio.create_task(self._stderr_reader(self._process.stderr))

result = await self.send_request("initialize", effective_params)
result = await self.send_request("initialize", effective_params, timeout=_INITIALIZE_TIMEOUT)
if result is None:
logger.error("jdtls initialize request failed or timed out")
await self.stop()
Expand Down
Loading