Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bamtools fails to open stdin when running in a Node environment #192

Open
anderspitman opened this issue May 29, 2019 · 0 comments
Open

Comments

@anderspitman
Copy link

bamtools throws an exception when attempting to open stdin when spawned as a subprocess by Node.js. The solution is to build bamtools with:

cmake -DEnableNodeJS=true

This is mentioned in the CMake file:

# If planning to run in Node.js environment, run:

And is obvious once you find the right place in the code:

#if defined(SYSTEM_NODEJS) && SYSTEM_NODEJS == 1

But it took me quite a bit of debugging to get to that point. Maybe it could be documented somewhere? At least hopefully someone will find this issue and save some time.

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

No branches or pull requests

1 participant