Skip to content

Input '@' cannot list workspace files, file search results always return 0 #18871

Closed as not planned

Description

@cyf007-lab

Question

**Problem * *: Unable to list workspace files when entering '@', file search results always show 0
environment
-OS: Windows [version]
-OpenCode version: 1.3
-Workplace path: D: \ HypProgram \ Fortran \ GRD Mod
**Log fragment * *:
INFO service=file query=. kind=all results=0 search
**Attempted * *:
-Delete cache
-Create. gitignore
-Test D: \ testbat directory
-No plugins
-Non Git repository
**Attachment * *: Complete log file

2026-03-24T041813.log

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 24, 2026
  2. github-actions commented on Mar 24, 2026

    @github-actions
    Contributor

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

  3. listky commented on Mar 24, 2026

    @listky

    I'm also having this problem, the project already has the '.gitignore' file included and didn't ignore the src directory, but now I can't reference any source code files with the @ symbol, it must have been good a few versions ago, my '.gitignore' file hasn't changed at all

  4. cyf007-lab commented on Mar 24, 2026

    @cyf007-lab
    Author

    我也遇到了这个问题,该项目已经包含了“.gitignore”文件,并且没有忽略src目录,但现在我无法引用任何源代码文件@符号,一定是几个版本之前的好,我的“.gitignore”文件根本没有改变

    It may not be related to the Git repository. I am on another computer and have not installed Git, so naturally I do not have a Git repository. However, I can still use @ to query all files in the current working directory.
    On this computer, it was initialized as a Git repository and a. gitignore file was created, but no files could be searched; Of course, I deleted the Git repository, but the problem still persists

  5. cyf007-lab commented on Mar 28, 2026

    @cyf007-lab
    Author

    The problem has been solved, it's a problem with a tool called ripgrep (i.e. rg. exe)
    This is a high-performance text search tool that not only affects @ search for the current file, but also affects loading skills
    Rg.exe is located in the "%USERPROFILE%.local\share\opencode\bin" directory
    OpenCode should be able to find it, but I don't know why it can't be found. Just add this path to the system PATH environment variable
    The problem has been solved, but I still don't know why OpenCode can't find this program

  6. shanghai-Jerry commented on Apr 21, 2026

    @shanghai-Jerry

    复现信息

    环境

    • OpenCode 版本: 1.14.19
    • 操作系统: macOS Darwin arm64
    • ripgrep: 已安装 v15.1.0
    • 工作目录:

    复现步骤

    1. cd 进入项目目录
    2. 运行 opencode 启动
    3. 输入 @ 符号
    4. 期望: 显示本地文件列表
    5. 实际: 只显示 @explore 和 @general

    已尝试

    • ripgrep 已安装并添加到 PATH
    • 仍无法列出本地文件
  7. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  8. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Collaborator

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions