java lsp jdtls invalid arguments. #7802

Open
opened 2026-02-16 18:08:16 -05:00 by yindo · 1 comment
Owner

Originally created by @donbing007 on GitHub (Jan 28, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

opencode 1.1.28

lsp [operation=documentSymbol, filePath=/.../././xxxx.java]
Error: The lsp tool was called with invalid arguments: [
{
  "expected": "number",
  "code": "invalid_type",
  "path": [
    "line"
  ],
  "message": "Invalid input: expected number, received undefined"
},
{
  "expected": "number",
  "code": "invalid_type",
  "path": [
    "character"
  ],
  "message": "Invalid input: expected number, received undefined"
 }
].
Please rewrite the input so it satisfies the expected schema.

I have checked that the documentSymbol of the document jdtls does not require the line and character parameters.

Originally created by @donbing007 on GitHub (Jan 28, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question opencode 1.1.28 ```text lsp [operation=documentSymbol, filePath=/.../././xxxx.java] Error: The lsp tool was called with invalid arguments: [ { "expected": "number", "code": "invalid_type", "path": [ "line" ], "message": "Invalid input: expected number, received undefined" }, { "expected": "number", "code": "invalid_type", "path": [ "character" ], "message": "Invalid input: expected number, received undefined" } ]. Please rewrite the input so it satisfies the expected schema. ``` I have checked that the documentSymbol of the document jdtls does not require the line and character parameters.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7512: Tools with array/object parameters fail when LLM sends stringified JSON - This directly addresses LSP tools with line/character number parameters failing with type validation errors
@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #7512: Tools with array/object parameters fail when LLM sends stringified JSON - This directly addresses LSP tools with line/character number parameters failing with type validation errors
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7802