Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Handle error caused by stdin being closed if python wasn't found - #65

Merged
jmanuel1 merged 9 commits into
masterfrom
tokenizer-epipe
Dec 16, 2025
Merged

Handle error caused by stdin being closed if python wasn't found#65
jmanuel1 merged 9 commits into
masterfrom
tokenizer-epipe

Conversation

@jmanuel1

Copy link
Copy Markdown
Owner

No description provided.

@jmanuel1
jmanuel1 requested a review from Copilot December 16, 2025 18:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an error that occurs when stdin is closed prematurely if Python wasn't found in the expected location. The solution adds proper EPIPE error handling when writing to and closing stdin during the Python path discovery process.

Key changes:

  • Added error handling for EPIPE errors when writing to stdin
  • Converted stdin operations to use async/await pattern with promisify
  • Added test coverage to verify the fix doesn't throw when Python isn't in the first checked location

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
language-concat/lib/concat.ts Implemented EPIPE error handling for stdin operations and converted to async/await pattern
language-concat/spec/concat-spec.js Added test to verify proper error handling when Python is not found immediately
.github/workflows/pulsar-package.yml Added CI workflow configuration to run automated tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread language-concat/spec/concat-spec.js Outdated
Comment thread language-concat/lib/concat.ts
@coveralls

coveralls commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 80.639%. remained the same
when pulling 1f4cebe on tokenizer-epipe
into f519ae3 on master.

@jmanuel1
jmanuel1 merged commit 9071963 into master Dec 16, 2025
14 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants