Skip to content

fix: resolve make setup build failures for new contributors - #12

Draft
AdityaKumdale wants to merge 2 commits into
codag-megalith:mainfrom
AdityaKumdale:fix/setup-build-errors
Draft

fix: resolve make setup build failures for new contributors#12
AdityaKumdale wants to merge 2 commits into
codag-megalith:mainfrom
AdityaKumdale:fix/setup-build-errors

Conversation

@AdityaKumdale

Copy link
Copy Markdown

Summary

Fixes make setup and npm run compile build failures for new contributors. A fresh clone previously failed due to a missing WASM copy script and missing dependencies for the MCP server.

Changes

  • Added missing frontend/scripts/copy-wasm.js: The copy-wasm script in package.json references this file to copy tree-sitter binaries, but it was being ignored by frontend/.gitignore. I added the file and updated the .gitignore to track it.
  • Fixed MCP server dependency installation: esbuild previously failed to resolve @modelcontextprotocol/sdk and zod because make setup wasn't installing packages in the mcp-server directory. Added a cd packages/mcp-server && npm install step to the root Makefile.

Testing

  • Frontend compiles (cd frontend && npm run compile)
  • Backend starts (cd backend && python main.py)
  • Extension loads and analyzes files correctly

Screenshots

N/A (Build system fixes only)

The
pm run copy-wasm script in package.json references scripts/copy-wasm.js, but the file was never committed to the repo. This causes make setup to fail for new contributors with:

  Error: Cannot find module '...frontend/scripts/copy-wasm.js'

The script copies tree-sitter WASM files from node_modules into the out/ build directory, which the extension needs at runtime for code parsing.

Also updates frontend/.gitignore to un-ignore this specific build script (scripts/* was blanket-ignored for dev/test scripts).
The compile:mcp script bundles packages/mcp-server/src/index.ts via esbuild, which imports @modelcontextprotocol/sdk and zod. However, make setup never ran
pm install in packages/mcp-server/, causing the build to fail with:

  X [ERROR] Could not resolve @modelcontextprotocol/sdk/server/mcp.js

  X [ERROR] Could not resolve zod

This adds cd packages/mcp-server && npm install before the frontend compile step.
@AdityaKumdale
AdityaKumdale marked this pull request as draft June 10, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant