Naftoli Gugenheim
Naftoli Gugenheim
@nkgm correct. I think a more fruitful approach would actually be to lobby for inclusion in Scala proper. It doesn't mean including an optics library, just the following: A. A...
Maybe some way with named tuples? Or like I said before, just start a pre-SIP. Code gen seems dubious since it belongs in a companion. Unless I make the companions...
The idea discussed here: https://contributors.scala-lang.org/t/scala-3-macro-annotations-and-code-generation/6035
How can code not in the source tree be part of the companion object of code that is
I've been doing something like ```scala stdout = os.ProcessOutput.Readlines(line => T.ctx().log.debug("[prefix] " + line)) ``` where `prefix` is a name for what program I'm running.
Although, I guess you'd want to do that for `stderr` too (except maybe with `log.warn`)... Too bad os.proc doesn't have an easy way to reuse groups of parameters, that's something...
Another good place to mention Jvm.runSubprocess is https://com-lihaoyi.github.io/mill/mill/Extending_Mill.html#_custom_targets_commands which currently says > For subprocess/filesystem operations, you can use the [os-lib](https://github.com/lihaoyi/os-lib) library that comes bundled with Mill, or even plain java.nio/java.lang.Process....
One thing that's worse about Jvm.runSubprocess is that if it exits with a nonzero exit code, it throws a generic Exception that doesn't say the command line that failed. With...
I switched to ```scala catch { case e: Exception => throw new RuntimeException("Error running webpack", e) } ``` but then the output is harder to scan: ``` main.test.fastLinkJSTest java.lang.RuntimeException: Error...
Here is the bsp file contents that IntelliJ is using: ```json {"name":"mill-bsp","argv":["/home/naftoli/bin/mill","--bsp","--disable-ticker","--color","false","--jobs","1", "--debug"],"millVersion":"0.10.12","bspVersion":"2.0.0","languages":["scala","java"]} ```