Skip to content

Issue with js/ts project, files not indexed #43

@misteral

Description

@misteral

Hi @Jakedismo, your project is awesome!!

I work with rust/ts/js project https://github.com/vercel/next.js
I already successfully install codegraph-rust with install-codegraph-osx.sh.
Change path to project and run init & index commands:

❯ codegraph init .
Initializing CodeGraph project...
Path: "."
✓ Created .codegraph/config.toml
✓ Created .codegraph/db/
✓ Created .codegraph/vectors/
✓ Created .codegraph/cache/
✓ Created .gitignore.codegraph

Project initialized successfully!

Next steps:
1. Run 'codegraph index .' to index your codebase
2. Start MCP server: 'codegraph start stdio'
3. Configure Claude Desktop with CodeGraph MCP
4. Experience revolutionary AI codebase intelligence!
❯ codegraph index .
⠁ Indexing project: .
  [00:00:00] [████████████████████████████████████████] 42/42 (100%) 🌳 AST Analysis complete: 5/42 files (✅ 11.9% success) | 📊 7 nodes + 214 edges | ⚡ 0 lines/s | 10,187.7876/s/s | ETA: 0s
⠁ [00:00:00] [                                             ] 0/7 embeddings
                💾 Standard (512 batch) | 0% | 0/s/s | Memory: Optimized | ETA: 0s  
2025-11-05T12:40:15.874503Z ERROR codegraph_vector::embedding: 🚨 CRITICAL: Falling back to random hash-based embeddings
  ✔ Indexing complete
  [00:00:00] [████████████████████████████████████████] 42/42 (100%) 🌳 AST Analysis complete: 5/42 files (✅ 11.9% success) | 📊 7 nodes + 214 edges | ⚡ 0 lines/s | 10,187.7876/s/s | ETA: 0s
  [00:00:00] [█████████████████████████████████████████████] 7/7 embeddings
                💾 💾 Semantic embeddings complete: 7/7 nodes (✅ 100.0% success) | 🤖 default | 📐 384-dim | 🚀 Batch: 512 | 100% | 41,979.0105/s/s | Memory: Optimized | ETA: 0s
  [00:00:00] [████████████████████████████████████████] 7/7 (100%) 📈 Stored nodes & symbols | 11,836.821/s/s | ETA: 0s
  [00:00:00] [████████████████████████████████████████] 214/214 (100%) 🔗 Dependencies resolved: 12/214 relationships (5.6% success) | ⚡ 0.0s | 33,303.0701/s/s | ETA: 0s
🎉 INDEXING COMPLETE!

📊 Performance Summary
┌─────────────────────────────────────────────────┐
│ ⏱️  Total time: 19.01ms                           │
│ ⚡ Throughput: 263.03 files/sec                  │
├─────────────────────────────────────────────────┤
│ 📄 Files:      5 indexed,   37 skipped               │
│ 📝 Lines:    741 processed                          │
│ 💾 Embeddings:      7 generated                      │
└─────────────────────────────────────────────────┘

⚙️  Configuration Summary
Workers: 6 | Batch Size: 512 | Languages:
✅ Excellent embedding success rate (>90%)

🚀 Ready for Revolutionary MCP Intelligence!
Next: Start MCP server with 'codegraph start stdio'

Issue 1: Project has more than 5 files.
Issue 2: ERROR codegraph_vector::embedding: 🚨 CRITICAL: Falling back to random hash-based embeddings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions