Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gemini 2.5 Pro (agent mode) : Unexpected token { in JSON at position 42 when trying to read file #4956

Open
3 tasks done
masda70 opened this issue Apr 2, 2025 · 0 comments
Assignees
Labels
ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"

Comments

@masda70
Copy link

masda70 commented Apr 2, 2025

Before submitting your bug report

Relevant environment info

- OS: Windows
- Continue version: 1.0.8
- IDE version: PyCharm 2024.3.4
- Model: gemini-2.5-pro-exp-03-25
- config:

  {  
     models: {
       "title": "Gemini 2.5 Pro",
       "provider": "gemini",
       "model": "gemini-2.5-pro-exp-03-25",
       "apiKey": "xxxx"
     },
  }

Description

Agent mode request using Gemini 2.5 Pro seems to be unable to use read files.

Claude 3.7 works perfectly on my environment.

To reproduce

Prompt : "Review the implementation of XXX [...]"

First, I'll check the repository structure.

Continue viewed the repository map
1 context item
Okay, I see two files related to X in the src/libs/xxx/ directory:
aaaa.ts
bbb.ts
Let's examine the contents of these files to understand the implementation.

Continue tried to read src/libs/xxx/aaa.ts
filepath:
src/libs/xxx/aaa.ts
1 context item
Tool Call Error
Tool Call Failed
Details : The tool call failed with the message:

Unexpected token { in JSON at position 42

Please try something else or request further instructions.

Log output

The tool call failed with the message:

Unexpected token { in JSON at position 42

Please try something else or request further instructions.
@dosubot dosubot bot added ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior labels Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"
Projects
None yet
Development

No branches or pull requests

2 participants