Skip to content

ENOENT error when referencing file paths in OpenCode AI CLI (windows) #2799

Closed as duplicate

Description

@Aaryan6

When mentioning a file path in the OpenCode CLI, the message fails to send and throws an ENOENT error. It seems like the CLI is trying to scan a directory that doesn’t exist (but it exists).

Image

Also, when searching for files using @filename (e.g., @hero), the CLI does not identify the file.

Image

System: Windows 11
Opencode version: 0.11.8

How to resolve this?

Activity

  1. github-actions commented on Sep 26, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Sep 26, 2025

    @rekram1-node
    Collaborator

    I think this may be a duplicate of #1374.

    @itsrainingmani is our windows guy so he can help out more here

  3. self-assigned this
    on Sep 26, 2025
  4. Aaryan6 commented on Sep 26, 2025

    @Aaryan6
    Author

    Thanks, it's the same issue!
    But it's been a month, when can I expect this to be solved? I really wanna try opencode!!! 🥺

  5. rekram1-node commented on Sep 26, 2025

    @rekram1-node
    Collaborator

    Haha I will try to spin up a VM and debug it if i find time, the tui is also currnetly being rebuilt from ground up by Dax and that may address some compatibility issues!

  6. itsrainingmani commented on Sep 26, 2025

    @itsrainingmani
    Contributor

    Hi, this should be fixed by - #2665. @rekram1-node would you mind taking a look at the PR?

  7. rekram1-node commented on Sep 26, 2025

    @rekram1-node
    Collaborator

    @itsrainingmani yes I will, I will test on my machine to make sure it works on non windows still and depending on scope of changes I may need to have someone from team review but I will lyk

  8. itsrainingmani commented on Sep 26, 2025

    @itsrainingmani
    Contributor

    I've tested on MacOS so hopefully it should check out for you too. I'll re-ping Dax as well

  9. rekram1-node commented on Sep 26, 2025

    @rekram1-node
    Collaborator

    @itsrainingmani left a comment on PR

  10. diptodesign commented on Jul 10, 2026

    @diptodesign

    Error: ENOENT: no such file or directory, mkdir 'C:\Users\user1.config\opencode'

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