Skip to content

Fix Windows startup and import resolution issues - #1183

Merged
Shashankss1205 merged 1 commit into
CodeGraphContext:mainfrom
anjali62510-star:fix-path-normalization-bug
Jun 11, 2026
Merged

Shashankss1205 merged 1 commit into
CodeGraphContext:mainfrom
anjali62510-star:fix-path-normalization-bug

Conversation

@anjali62510-star

Copy link
Copy Markdown
Contributor

PR Title

Fix Windows startup and import resolution issues

Description

Summary

This PR fixes multiple startup and import-related issues that prevented CodeGraphContext from running correctly on Windows environments.

Changes Made

  • Fixed relative and absolute import inconsistencies across modules.
  • Updated watcher imports to use package-relative paths.
  • Fixed package resolver import issues related to stdlibs.
  • Added missing stdlibs.py module.
  • Improved server startup behavior to avoid immediate crashes when database backends are unavailable.
  • Updated configuration and initialization code to support Windows execution paths more reliably.
  • Fixed tool definition imports and related startup errors.
  • Resolved module loading issues encountered when running:
py -m src.codegraphcontext.server

Testing

Verified:

  • Server starts successfully using:
py -m src.codegraphcontext.server
  • No import-related startup failures.
  • Watcher module imports correctly.
  • Package resolver loads successfully.
  • Configuration loading works as expected on Windows.

Result

The server now starts successfully and reaches:

MCP Server is running. Waiting for requests...

without crashing due to import resolution problems.

@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

@anjali62510-star is attempting to deploy a commit to the shashankss1205's projects Team on Vercel.

A member of the Team first needs to authorize it.

@anjali62510-star

Copy link
Copy Markdown
Contributor Author

Hello @CodeGraphContext
I've worked on this issue and fixed the Windows startup/import errors that were preventing the server from launching successfully. The server now starts correctly and reaches the waiting state. I've opened a PR with the proposed fixes for review.

@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Jun 11, 2026
@Shashankss1205
Shashankss1205 merged commit 32be6b0 into CodeGraphContext:main Jun 11, 2026
1 check failed
pull Bot pushed a commit to Mu-L/CodeGraphContext that referenced this pull request Jun 12, 2026
PR CodeGraphContext#1183 accidentally removed incremental watcher relinking, and PR CodeGraphContext#1192's
Neo4j fast/slow CALLS MATCH split caused a 1-edge Kuzu/Ladybug parity gap.
Restore incremental _handle_modification, scope the perf split to Neo4j only,
and align unit-test mocks with execute_write_operation.

Co-authored-by: Cursor <[email protected]>
macunha1 pushed a commit to macunha1/CodeGraphContext that referenced this pull request Jun 21, 2026
…th-normalization-bug

Fix Windows startup and import resolution issues.
macunha1 pushed a commit to macunha1/CodeGraphContext that referenced this pull request Jun 21, 2026
PR CodeGraphContext#1183 accidentally removed incremental watcher relinking, and PR CodeGraphContext#1192's
Neo4j fast/slow CALLS MATCH split caused a 1-edge Kuzu/Ladybug parity gap.
Restore incremental _handle_modification, scope the perf split to Neo4j only,
and align unit-test mocks with execute_write_operation.

Co-authored-by: Cursor <[email protected]>
@Shashankss1205 Shashankss1205 added gssoc:approved GSSoC validation: counts toward scoring level:intermediate GSSoC difficulty: 35 pts contributor / 20 mentor mentor:Shashankss1205 GSSoC mentor attribution: credits reviewing mentor type:bug GSSoC type bonus: bug labels Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC validation: counts toward scoring level:intermediate GSSoC difficulty: 35 pts contributor / 20 mentor mentor:Shashankss1205 GSSoC mentor attribution: credits reviewing mentor type:bug GSSoC type bonus: bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants