codegraph-rust icon indicating copy to clipboard operation
codegraph-rust copied to clipboard

Fix Windows build and runtime compatibility

Open 2233admin opened this issue 6 months ago • 0 comments

Summary

  • gate jemalloc to Unix-only builds and fix Windows mmap prefetch API usage
  • add Windows process management for the MCP server and daemon using tasklist/taskkill
  • fix the Jina embedding auto-provider mutability issue
  • make the built-in SurrealDB schema bootstrap idempotent so Windows local setups can initialize and re-run cleanly

Verification

  • built and installed codegraph.exe on Windows with a lean feature set: cargo install --path crates/codegraph-mcp-server --bin codegraph --no-default-features --features daemon,embeddings-ollama,embeddings-openai,embeddings-jina,embeddings-lmstudio,server-http --force
  • verified local database connectivity with codegraph db-check
  • verified indexing on Windows with: codegraph index C:\Users\Administrator\codegraph-rust --index-tier fast --workers 2

Notes

  • this does not attempt to fix the separate Windows issue in the AutoAgents git dependency checkout path during a fresh cargo check; this PR stays focused on the CodeGraph-side Windows build/runtime fixes that were required to get the local MCP/indexing flow working.

2233admin avatar May 14 '26 10:05 2233admin