Skip to content

Cannot read file because SyntaxError: Unexpected token ''', ...""paths": ['ch2.ipynb"... is not valid JSON #101

@neverbiasgit

Description

@neverbiasgit

What happened?

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > 检查ch2.ipynb到ch5.ipynb的格式,总结一份格式的文档,不能太长,就把代码格式和Markdown格式,以及总结笔记的格式给梳理一下。以有序 │
│ 列表或者表格形式输出。 │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Failed to parse final tool call arguments: SyntaxError: Unexpected token ''', ...""paths": ['ch2.ipynb"... is not valid JSON
at JSON.parse ()
at OpenAIContentGenerator.convertStreamChunkToGeminiFormat (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:154382:33)
at OpenAIContentGenerator.streamGenerator (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:153937:22)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async OpenAIContentGenerator. (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:153811:32)
at async GeminiChat.processStreamResponse (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:246410:24)
at async Turn.run (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:245391:24)
at async GeminiClient.sendMessageStream (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:246823:22)
at async file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:255139:24
at async file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:255228:34

CRITICAL: Unhandled Promise Rejection!

Reason: TypeError: params.paths is not iterable
at _ReadManyFilesTool.getDescription (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:238303:36)
at file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:254697:43
at Array.map ()
at mapToDisplay (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:254689:34)
at file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:254874:11
at CoreToolScheduler.onAllToolCallsComplete (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:254607:7)
at CoreToolScheduler.checkAndNotifyCompletion (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:253269:14)
at CoreToolScheduler.setStatusInternal (file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:253093:10)
at file:///C:/Users/kcloud/AppData/Roaming/npm/node_modules/@qwen-code/qwen-code/bundle/gemini.js:253253:16
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Stack trace may follow:
✦ 我将检查ch2.ipynb到ch5.ipynb的格式并总结文档格式规范。首先,让我读取这些文件的内容。

What did you expect to happen?

I think it can read the file properly

Client information

Details
$ gemini /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions