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.

Path /dev/null not found on Windows

See original GitHub issue

Because 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:closed
  • Created 6 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yegor256commented, Jun 12, 2018

@oridan it’s not mine 😃

0reactions
0cratcommented, Jun 14, 2018

Quality review completed: +8 point(s) just awarded to @elenavolokhova/z

Read more comments on GitHub >

github_iconTop 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 >

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