io icon indicating copy to clipboard operation
io copied to clipboard

IO module for sbt

Results 15 io issues
Sort by recently updated
recently updated
newest added

Reasoning same as https://github.com/sbt/librarymanagement/pull/429

See [here](https://github.com/sbt/io/blob/develop/io/src/main/scala/sbt/io/Hash.scala#L64). When a file is a directory, you get a `FileNotFoundException` when instantiating a `FileInputStream` with it. This makes it harder to write SBT tasks that need to invalidate...

In the current implementation, copyExecutable does not favor the original file permission except the file owner: ```scala /** Transfers the executable property of `sourceFile` to `targetFile`. */ def copyExecutable(sourceFile: File,...

Needinfo
uncategorized

https://github.com/sbt/io/pull/303/commits/1597832c23d9a84799b1e0a9df1059e0a745c882 This part started to fail on GitHub Actions. ```scala withThread("file-deletion-thread") { subdirs.foreach(p => IO.delete(p.toFile)) } { if (!deletionLatch.await(DEFAULT_TIMEOUT * 10)) { assert(deletionLatch.getCount == 0) } c.ls(dir.toGlob / AnyPath) shouldBe...

https://en.wikipedia.org/wiki/Zip_bomb https://github.com/sbt/io/commit/d258f906431d556d3a8774c31f8432affb9259a9 WDYT? 👀

I've noticed that both in CI and on my computer that sometimes io/test hangs. I was able to get a stack trace with jstack: ``` "pool-1-thread-3" #14 prio=5 os_prio=31 tid=0x00007f85b4001800...

# Description A bunch of methods in `Using` have `OpenFile[T]` as their return type, which is private. # How to reproduce View the `sbt.io.Using` class in scaladoc and look at...

review

On windows at 49e8c80991488e35b067b4d85f2f08189749f19a tests hang somewhere in native code: ``` "pool-7-thread-1-ScalaTest-running-IOSpec@21259" prio=5 tid=0x69 nid=NA runnable java.lang.Thread.State: RUNNABLE at com.sun.jna.Native.initIDs(Native.java:-1) at com.sun.jna.Native.(Native.java:216) at com.sun.jna.platform.win32.Kernel32.(Kernel32.java:42) at sbt.internal.io.WinMilli$.getHandle(Milli.scala:275) at sbt.internal.io.WinMilli$.getModifiedTimeNative(Milli.scala:293) at sbt.internal.io.WinMilli$.getModifiedTimeNative(Milli.scala:271)...

uncategorized

See https://github.com/sbt/io/blob/16f0f6a3b1380806c891cf5a672c11a099a3bf2f/io/src/main/scala/sbt/io/NameFilter.scala#L46 The comment there is: > A [[FileFilter]] that selects files that are hidden according to `java.io.File.isHidden` or if they start with a dot (`.`). That sounds like reasonable...

Bug
uncategorized

Sometimes IO.setModifiedTimeOrFalse throws an IOException on the travis linux build agents. It is specifically reporting an EINVAL (the error string is "Invalid Argument"). I don't understand how this is happening...

uncategorized