Skip to content

Commit 5f9bbe9

Browse files
FelixIsaacclaude
andcommitted
debug: add logging to expandPluginPaths for troubleshooting
- Log when checking plugins directory - Log number of files found - Log when placeholder is detected 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9f7e434 commit 5f9bbe9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/cmd/pull.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ func runPull(cmd *cobra.Command, args []string) error {
191191
func expandPluginPaths(claudeDir string) error {
192192
// Find all JSON files in plugins directory that may contain path placeholders
193193
pluginsDir := filepath.Join(claudeDir, "plugins")
194+
logInfo(fmt.Sprintf("Checking for plugin paths to expand in: %s", pluginsDir))
194195
if !sync.FileExists(pluginsDir) {
196+
logInfo("Plugins directory does not exist, skipping expansion")
195197
return nil
196198
}
197199

@@ -200,6 +202,8 @@ func expandPluginPaths(claudeDir string) error {
200202
return err
201203
}
202204

205+
logInfo(fmt.Sprintf("Found %d files in plugins directory", len(files)))
206+
203207
for _, file := range files {
204208
if !strings.HasSuffix(file, ".json") {
205209
continue
@@ -215,6 +219,8 @@ func expandPluginPaths(claudeDir string) error {
215219
continue
216220
}
217221

222+
logInfo(fmt.Sprintf("Found placeholder in: %s", file))
223+
218224
expanded := sync.ExpandPathsInJSON(data, claudeDir)
219225
if err := os.WriteFile(file, expanded, 0644); err != nil {
220226
return fmt.Errorf("failed to write expanded %s: %w", file, err)

0 commit comments

Comments
 (0)