-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Description
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
- Create a new Go project with main.go under
api/
folder (not the root folder) - Create a folder called
api/pkg/
without any files in it - Under
api/pkg/
create a new folder with file calledhello/default.go
(or anything) - Import the code into
main.go
- Instruct Cline to give you feedback
Relevant API REQUEST output
Screenshot below
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?
cline/src/services/glob/list-files.ts
Lines 7 to 23 in 01d3afe
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
celestial-vault
Metadata
Metadata
Assignees
Labels
No labels