Skip to content

Unable to do a recursive search #4483

@akshaybabloo

Description

@akshaybabloo

What happened?

I am using anthropics Claude 4 sonnet, and I have a folder structure something like this

.
├── /api/
│   ├── /pkg/
│   │   ├── auth/
│   │   │   └── default.go
│   │   └── something/
│   │       └── default.go
│   ├── /server
│   │   ├── /auth
│   │   │   └── default.go
│   │   └── default.go
│   ├── main.go
│   ├── go.mod
│   └── go.sum
├── README.md
└── LICENSE

Note

No files under api/pkg/ but it has folders in it which in turn contains files

Cline thinks that api/pkg/ folder is empty and it's not able to do a recursive walk. I tried adding default.go under api/pkg/ folder and it still says that api/pkg/ is empty. It is able to get api/server/ files/folder correctly.

Steps to reproduce

  1. Create a new Go project with main.go under api/ folder (not the root folder)
  2. Create a folder called api/pkg/ without any files in it
  3. Under api/pkg/ create a new folder with file called hello/default.go (or anything)
  4. Import the code into main.go
  5. Instruct Cline to give you feedback

Relevant API REQUEST output

Screenshot below

Image

Provider/Model

cline-sonnet-4-20250514

Operating System

Windows 11

System Info

None.

Cline Version

3.18.0

Additional context

This could be because of pkg folder is being ignored in your code?

const DEFAULT_IGNORE_DIRECTORIES = [
"node_modules",
"__pycache__",
"env",
"venv",
"target/dependency",
"build/dependencies",
"dist",
"out",
"bundle",
"vendor",
"tmp",
"temp",
"deps",
"pkg",
"Pods",
]

Might be related to - #1451

Metadata

Metadata

Assignees

No one assigned

    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