Comments (1)
I guess re-using public targets and commands defined elsewhere is never a good idea. Instead, you should define a new command with T.command { .. }
and call (meaning: depend on) the other command from there. E.g.:
def sayProblem(): Command[Unit] = T.command {
sayThing("encountered unrecoverable cycle resolving import")()
}
Even, better, make the sayThing
command an annonymous task with T.task { .. }
.
Unfortunately, the types are correct, therefore the compiler will not call our implicit conversions here. The proper definition of a command should always contain the T.commnad { .. }
on the left hand side, which is not the case in the definition of sayProblem
in all of your examples. That means, the commands context isn't correct.
from mill.
Related Issues (20)
- BSP: `MatchError` when a `TestModule` is used in isolation HOT 2
- Create a T.secret for credentials or similar HOT 2
- Support Scala native 0.5.0 HOT 1
- Current `semanticDbData` implementation isn't incremental
- `docker.build` should invalidate results when environment changes HOT 1
- How to add `Premain-Class` attribute to JAR manifest? HOT 1
- Scoverage: `xmlCoberturaReportAll` can not be found. HOT 8
- Refactor assembly logic into a `AssemblyModule`
- com/lihaoyi/mill-scalanativelib-worker 0.11.7 is not released HOT 1
- Support alternative/configurable `out` directory
- Send dependency modules data as `MavenDependencyModule`
- Migrate `build.sc` to Scala 3 (1000USD Bounty) HOT 2
- BSP's dependencyModules do not return transitive libraries HOT 6
- url pattern need update HOT 4
- MatchError when do ` mill.idea.GenIdea/idea` HOT 12
- Add new built in command in Test suite that lists full names of all test classes or test cases. HOT 1
- Compile time slower in version 0.11.7-86-18d144 HOT 2
- Publish to winget HOT 1
- Add support in import IDEA scala plugin? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mill.