新版本1.1.56加载部分项目, 报列出文件失败 #9021

Closed
opened 2026-02-16 18:11:25 -05:00 by yindo · 9 comments
Owner

Originally created by @wenshunxin on GitHub (Feb 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

报列出文件失败

Plugins

No response

OpenCode version

1.1.56

Steps to reproduce

加载小程序项目

Screenshot and/or share link

Image

Operating System

macOS

Terminal

No response

Originally created by @wenshunxin on GitHub (Feb 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 报列出文件失败 ### Plugins _No response_ ### OpenCode version 1.1.56 ### Steps to reproduce 加载小程序项目 ### Screenshot and/or share link <img width="450" height="301" alt="Image" src="https://github.com/user-attachments/assets/68fbea3a-5627-4862-9847-265c794cf5fb" /> ### Operating System macOS ### Terminal _No response_
yindo added the bugneeds:compliance labels 2026-02-16 18:11:25 -05:00
yindo closed this issue 2026-02-16 18:11:25 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 10, 2026):

This issue doesn't fully meet our contributing guidelines.

What needs to be fixed:

  • Steps to reproduce: Currently just says "加载小程序项目" (Load mini program project). Please provide detailed steps on how to reproduce this issue.
  • Plugins: Please provide information about which plugins you have installed
  • Terminal: Please provide terminal output or error logs from the OpenCode log file

Please edit this issue to address the above within 2 hours, or it will be automatically closed.


Potential duplicate:
This issue appears to be a duplicate of #13045, which reports the same "Failed to list files" error in version 1.1.56. Both issues involve file loading failures. Please check if your issue is the same or related, and consider consolidating if they are duplicates.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions[bot] commented on GitHub (Feb 10, 2026): <!-- issue-compliance --> This issue doesn't fully meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md). **What needs to be fixed:** - **Steps to reproduce**: Currently just says "加载小程序项目" (Load mini program project). Please provide detailed steps on how to reproduce this issue. - **Plugins**: Please provide information about which plugins you have installed - **Terminal**: Please provide terminal output or error logs from the OpenCode log file Please edit this issue to address the above within **2 hours**, or it will be automatically closed. --- **Potential duplicate:** This issue appears to be a duplicate of #13045, which reports the same "Failed to list files" error in version 1.1.56. Both issues involve file loading failures. Please check if your issue is the same or related, and consider consolidating if they are duplicates. If you believe this was flagged incorrectly, please let a maintainer know.
Author
Owner

@Yucheng1017 commented on GitHub (Feb 10, 2026):

opencode
{
"name": "UnknownError",
"data": {
"message": "TypeError: Header 'x-opencode-directory' has invalid value: '/Users/xiaoyucheng/Desktop/清湛/归档/项目/doc-diff/doc-platform'\n at set (unknown)\n at mergeHeaders (../sdk/js/src/gen/client/utils.gen.ts:184:23)\n at mergeConfigs (../sdk/js/src/gen/client/utils.gen.ts:161:20)\n at createClient (../sdk/js/src/gen/client/client.gen.ts:21:17)\n at createOpencodeClient (../sdk/js/src/client.ts:28:18)\n at (src/plugin/index.ts:25:20)\n at (src/project/state.ts:22:21)\n at init2 (src/plugin/index.ts:123:25)\n at InstanceBootstrap (src/project/bootstrap.ts:19:16)\n at (src/project/instance.ts:34:23)\n at async provide (src/project/instance.ts:40:23)"
}
}

@Yucheng1017 commented on GitHub (Feb 10, 2026): opencode { "name": "UnknownError", "data": { "message": "TypeError: Header 'x-opencode-directory' has invalid value: '/Users/xiaoyucheng/Desktop/清湛/归档/项目/doc-diff/doc-platform'\n at set (unknown)\n at mergeHeaders (../sdk/js/src/gen/client/utils.gen.ts:184:23)\n at mergeConfigs (../sdk/js/src/gen/client/utils.gen.ts:161:20)\n at createClient (../sdk/js/src/gen/client/client.gen.ts:21:17)\n at createOpencodeClient (../sdk/js/src/client.ts:28:18)\n at <anonymous> (src/plugin/index.ts:25:20)\n at <anonymous> (src/project/state.ts:22:21)\n at init2 (src/plugin/index.ts:123:25)\n at InstanceBootstrap (src/project/bootstrap.ts:19:16)\n at <anonymous> (src/project/instance.ts:34:23)\n at async provide (src/project/instance.ts:40:23)" } }
Author
Owner

@Yucheng1017 commented on GitHub (Feb 10, 2026):

same+1

@Yucheng1017 commented on GitHub (Feb 10, 2026): same+1
Author
Owner

@izjing commented on GitHub (Feb 10, 2026):

ImageWhen multiple projects exist, only one project can be opened normally, while the other projects show a ‘列出文件失败’ error.

@izjing commented on GitHub (Feb 10, 2026): <img width="3574" height="1982" alt="Image" src="https://github.com/user-attachments/assets/ac0c15be-9147-476e-9240-30866b17905a" />When multiple projects exist, only one project can be opened normally, while the other projects show a ‘列出文件失败’ error.
Author
Owner

@AlexD17 commented on GitHub (Feb 10, 2026):

Image Please fix this bug quickly, my conversations are missing.
@AlexD17 commented on GitHub (Feb 10, 2026): <img width="2996" height="1756" alt="Image" src="https://github.com/user-attachments/assets/435adfa2-f0d3-4a33-a559-40658d72b91d" /> Please fix this bug quickly, my conversations are missing.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 10, 2026):

This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new issue that follows our issue templates.

@github-actions[bot] commented on GitHub (Feb 10, 2026): This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window. Feel free to open a new issue that follows our issue templates.
Author
Owner

@banpie commented on GitHub (Feb 11, 2026):

看了日志,把文件夹的中文修改为英文就好了。

After checking the log, it's fine to change the Chinese name of the folder to English.

@banpie commented on GitHub (Feb 11, 2026): 看了日志,把文件夹的中文修改为英文就好了。 After checking the log, it's fine to change the Chinese name of the folder to English.
Author
Owner

@AlexD17 commented on GitHub (Feb 11, 2026):

@banpie 文件夹直接改名没用,重新打开后,他识别的还是之前的中文名,肯定是在系统文件中有识别路径的

@AlexD17 commented on GitHub (Feb 11, 2026): @banpie 文件夹直接改名没用,重新打开后,他识别的还是之前的中文名,肯定是在系统文件中有识别路径的
Author
Owner

@banpie commented on GitHub (Feb 12, 2026):

@banpie 文件夹直接改名没用,重新打开后,他识别的还是之前的中文名,肯定是在系统文件中有识别路径的

我把错误日志丢AI,我修改成英文就好了,但是如果路径有中文,还是不行,比如用户名是中文。

@banpie commented on GitHub (Feb 12, 2026): > [@banpie](https://github.com/banpie) 文件夹直接改名没用,重新打开后,他识别的还是之前的中文名,肯定是在系统文件中有识别路径的 我把错误日志丢AI,我修改成英文就好了,但是如果路径有中文,还是不行,比如用户名是中文。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9021