Command returning withought result or with exception #1844
-
Partly inspired by mill's own build script, I'm attempting to move my basic "Install Local" and "Launch" commands available on the top level, not encased in any module. The following compiles just fine (ie, ammonite and the mill runtime accept it as a valid script - no syntax errors or similar) but it does not work the way I anticipated
runtime exception folded for brevity
What have I broken, or how do I troubleshoot this further? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Further noodling about has shown that whatever is going on is in is in the call to
EDIT: and it turns out that |
Beta Was this translation helpful? Give feedback.
Further noodling about has shown that whatever is going on is in is in the call to
Suite(localPlatform())
. When I pull that out onto its own line, I get this:EDIT: and it turns out that
localPlatform()
is of typeCommand[String]
instead ofString
. See #1239 for other variants. In my case, I can drop theT.command
part of the definition, as it's not r…