Path /dev/null not found on Windows
See original GitHub issueBecause path /dev/null
is used here, an IOException is thrown (and swallowed) when running the test TkAppTest:rendersOneReport
on Windows.
This stack trace is below is written to the output window. The test otherwise passes. All other tests also pass, without outputting any stack traces or other logs.
Futures-1 com.jcabi.log.VerboseCallable: swallowed exception: java.io.IOException: Cannot run program "unzip" (in directory "C:\Users\rok\AppData\Local\Temp\x2864671055049887563\sources\org\jpeek\jpeek"): \dev\null (The system cannot find the file specified)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at org.jpeek.web.Reports.apply(Reports.java:128)
at org.jpeek.web.Reports.apply(Reports.java:51)
at org.jpeek.web.Futures.lambda$apply$0(Futures.java:105)
at com.jcabi.log.VerboseCallable.call(VerboseCallable.java:179)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.jcabi.log.VerboseThreads$Wrap.run(VerboseThreads.java:220)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.FileNotFoundException: \dev\null (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.lang.ProcessImpl.start(ProcessImpl.java:112)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Path /dev/null not found on Windows · Issue #151 · cqfn/jpeek
Because path /dev/null is used here, an IOException is thrown (and swallowed) when running the test TkAppTest:rendersOneReport on Windows.
Read more >Is there a /dev/null on Windows? - Stack Overflow
I think you want NUL , at least within a command prompt or batch files. For example: type c:\autoexec.bat > NUL. doesn't create...
Read more >Windows 10 nul device not working (/dev/null)
I am trying to use GitHub for windows, and it fails due to not being able to find /dev/null. It is my understanding...
Read more >Redirect all output to /dev/null on Windows Command
A lot of Linux code redirects output to /dev/null as a way of not sending any output to the console. I work in...
Read more >Issue 1311: os.path.exists(os.devnull) regression on windows
As I understand it, "NUL" is a file that exists in every directory on win32. Opening the "nul" file with open("nul", "r") works...
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 Free
Top 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
@oridan it’s not mine 😃
Quality review completed: +8 point(s) just awarded to @elenavolokhova/z