Skip to content

[BUG] drift from cli, cpp in subfolders, qt5 .pro file: Found 0 source files. #56

@mattepiu

Description

@mattepiu

Describe the bug

drift does not finds cpp files

To Reproduce

Steps to reproduce the behavior:

  1. Run command drift setup
  2. With this file structure a .pro file on top, src subfolder for cpp files, include/mycompany/project/ subfolder for include files (.h)
  3. See error: Found 0 source files.

Expected behavior

At least to find source files

Screenshots / Output

the log is above

drift setup

╔════════════════════════════════════════════════════════════╗
║           🔍 Drift Setup Wizard                           ║
║   Create your codebase Source of Truth                    ║
╚════════════════════════════════════════════════════════════╝


━━━ Phase 0: Detection ━━━
    Checking for existing Drift installation

    No existing installation found. Starting fresh setup.

━━━ Phase 1: Initialize ━━━
    Setting up project structure

- Creating .drift directory...√ Project structure created
  ✓ Project registered: src

━━━ Phase 2: Pattern Discovery ━━━
    Scanning your codebase for patterns

  Drift analyzes your code to discover:
    • API patterns (routes, endpoints, middleware)
    • Auth patterns (authentication, authorization)
    • Error handling patterns
    • Data access patterns (queries, ORM usage)
    • Structural patterns (naming, organization)
    • And 10+ more categories...

  Found 0 source files.

Environment

  • OS: Windows 11, from git bash and powershell same issue
  • Node version: v22.18.0
  • Drift version: 0.9.48
  • Package manager: npm

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions