question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Error: Reading input from STDIN. Cannot take file params

See original GitHub issue

Running

minify src/js/sideNav.js --mangle.keepClassName --deadcode.keepFnArgs --outFile main.js.min

From the terminal works fine…

However when I run it through tup I get,

Error: Reading input from STDIN. Cannot take file params   

I have it installed with

yarn global add babel-minify

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
boopathicommented, Nov 10, 2017

I’ve not used tup. Maybe you can help debug what happens in tup and apply a fix that works everywhere. PR welcome. Thanks.

This is how we decide which input form to take - https://github.com/babel/minify/blob/9d4fbfa52988c47f1482bee2c87a603598622c1c/packages/babel-minify/src/cli.js#L258-L268

1reaction
curiousdanniicommented, Mar 29, 2018

Is there any way to move this forward? Can I provide any extra information?

Edit: I only just noticed that you’d published 0.3.0. My tests now pass: https://travis-ci.org/curiousdannii/ifvms.js/builds/359896556

If no one else is still having issues, I guess it’s time to close this. Thanks whoever fixed it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected behavior when reading input parameters from stdin
But then I tried to get inputs from a file: "./myprog.out < inputs.txt", where inputs.txt has a couple of words, the program does...
Read more >
Writing data to file - User input and error handling
Now, any print statement will write to the output file, and any raw_input call will read from the input file. (Without storing the...
Read more >
Full Text Bug Listing - Red Hat Bugzilla
blockIoTune(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: blockIoTune() takes exactly 4 arguments (2 given) Version- ...
Read more >
fileinput — Iterate over lines from multiple input streams ...
All files are opened in text mode by default, but you can override this by specifying the mode parameter in the call to...
Read more >
Troubleshooting AWS CLI errors - AWS Command Line Interface
If you receive an error that indicates that a command doesn't exist, or that it doesn't recognize a parameter ( Parameter validation failed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found