plandex-ai/plandex · error
error getting parent project ids with paths: %v
Error message
error getting parent project ids with paths: %v
What it means
This error wraps a failure from fs.GetParentProjectIdsWithPaths(auth.Current.UserId), which enumerates parent projects (with filesystem paths) for the current user. The call runs in a goroutine during the 'plans' command; any filesystem or lookup error is reported with this message.
Source
Thrown at app/cli/cmd/plans.go:65
if archivedOnly {
listArchived()
} else {
listActive()
}
}
func listActive() {
errCh := make(chan error)
var parentProjectIdsWithPaths [][2]string
var childProjectIdsWithPaths [][2]string
go func() {
res, err := fs.GetParentProjectIdsWithPaths(auth.Current.UserId)
if err != nil {
errCh <- fmt.Errorf("error getting parent project ids with paths: %v", err)
return
}
parentProjectIdsWithPaths = res
errCh <- nil
}()
go func() {
ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
defer cancel()
res, err := fs.GetChildProjectIdsWithPaths(ctx, auth.Current.UserId)
if err != nil {
log.Println(err.Error())
if err.Error() == "context timeout" {
errCh <- nilView on GitHub (pinned to e2d772072e)
Solutions
- Verify project directories exist and are readable by the current user
- Check filesystem permissions on the data/projects directory
- Re-authenticate so auth.Current.UserId is correct
- Rebuild/repair project state if the index is stale
Example fix
// before
res, err := fs.GetParentProjectIdsWithPaths(auth.Current.UserId)
if err != nil {
errCh <- fmt.Errorf("error getting parent project ids with paths: %v", err)
return
}
// after
res, err := fs.GetParentProjectIdsWithPaths(auth.Current.UserId)
if err != nil {
if os.IsPermission(err) {
errCh <- fmt.Errorf("permission denied reading project directories: %v", err)
} else {
errCh <- fmt.Errorf("error getting parent project ids with paths: %v", err)
}
return
} Defensive patterns
Strategy: fallback
Validate before calling
if auth.Current.UserId == "" {
return fmt.Errorf("not authenticated")
}
if fi, err := os.Stat(projectsDir); err != nil || !fi.IsDir() {
return fmt.Errorf("projects directory missing or unreadable: %s", projectsDir)
} Try / catch
res, err := fs.GetParentProjectIdsWithPaths(auth.Current.UserId)
if err != nil {
log.Warnf("parent projects unavailable: %v", err)
res = nil // degrade gracefully
} Prevention
- Don't delete/rename project dirs behind the CLI's back
- Check permissions on the data directory
- Re-authenticate when identity changes
- Handle 'context timeout' style errors as non-fatal where appropriate
When it happens
Trigger: GetParentProjectIdsWithPaths returns an error — e.g. the projects directory is unreadable, paths were moved/deleted, or user identity lookup fails.
Common situations: Project directories deleted or renamed outside the CLI, permission issues on the data directory, corrupted project index/state files.
Related errors
- error getting child project ids with paths: %v
- file does not exist: %s
- no project root found
- failed to stat stdin: %v
- failed to get project paths: %v
AI-assisted analysis of plandex-ai/plandex@e2d772072e (2026-09-05).
Data as JSON: /api/errors/0672882b6a93c14e.
Report an issue: GitHub.