Skip to content

Add native Windows build support - #54

Draft
skanga wants to merge 1 commit into
paradise-runner:mainfrom
skanga:agent/windows-support
Draft

skanga wants to merge 1 commit into
paradise-runner:mainfrom
skanga:agent/windows-support

Conversation

@skanga

@skanga skanga commented Aug 7, 2026

Copy link
Copy Markdown

Summary

  • add a native build.cmd entry point for Windows and document its use
  • allow CGO_ENABLED=0 builds by falling back to JSON/JSONC-only syntax highlighting
  • support Windows LSP file URIs, managed-download target triples, and portable installer tests

Why

The project did not compile with the standard Windows Go configuration because the tree-sitter dependency requires cgo. Windows path and executable assumptions also caused LSP tests and managed tooling behavior to fail.

Impact

Toast now builds as bin\toast.exe from cmd.exe without requiring a C compiler. When cgo is unavailable, JSON and JSONC retain syntax highlighting while tree-sitter-backed languages gracefully render as plain text.

Validation

  • cmd /c build.cmd
  • go test ./...
  • go vet ./...
  • git diff --check
  • bin\toast.exe --version

@paradise-runner paradise-runner left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So excited to see the first external PR! Give me a little time to fire up my windows machine and validate the change before getting it merged in. Thanks so much!

@paradise-runner

Copy link
Copy Markdown
Owner

I'm so sorry for falling behind on this! We started having more sleeping troubles with our young one so I haven't even turned on my windows PC since this was submitted. Evaluation coming soon!

@paradise-runner

Copy link
Copy Markdown
Owner

Alright! Some small requests and this will be good to go!

  1. Harper instillation will fail since we’ll need to align LSPs with the current platform
  2. Python and JS/TS need windows launch support
  3. Can we see about just adding a compiler and runtime for windows to keep syntax highlighting? I think it’s important we don’t lose this across platforms

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.

2 participants