[bug] Error: Reading input from STDIN. Cannot take file params
See original GitHub issueRunning
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:
- Created 6 years ago
- Reactions:10
- Comments:10 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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!