-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with build/watch on Windows #887
Comments
I think this is because of an old version of build_runner, see #651. |
@davidmorgan if you are going to be at dart conf we meet at some point and upgrade built_value to the latest and greatest? There have been a lot of recent features, namely you can set it up such that your users don't have to write a build.dart file any more, or actually do any config whatsoever (similar to the uber generator approach). |
Sadly not, but I will have a go at switching anyway. Actually I already have an issue open :) Thanks! |
Ok sounds good, the docs on this part are still quite lacking so you can ask questions directly if you hit roadblocks. You can look at json_serializable as an example. |
Will do, thanks! |
@davidmorgan please re-open if you need any more assistance after upgrading. |
Me again :) ... so I've been looking into build.yaml. It looks like I probably want "auto_apply: dependents", like the json_serializable example: https://github.com/dart-lang/json_serializable/blob/master/json_serializable/build.yaml But, what I need is for If I understand correctly I would add a The intended effect is that when you add a dep on Thanks! |
You should be able to add a |
You should be able to reference |
I'll give it a try. Unfortunately it looks like I need to make code_builder work with built_value v5 first. This is rather tricky as it turns out ... |
I'll close this (again) for now, will re-open if I get stuck again. Thanks :) |
I have built_value working locally with build_runner now ... one (hopefully) last question, please. I'm wiring things up via This depends on the generator in
which makes sense--it can't find the builder because there is no dev dependency on it--but I wonder if there is a better way to do this? It would be ideal if the Failing that, would it be possible for Thanks! |
Yes the only way to do that would be to add it to the normal deps of built_value. With these |
Not easily, but this is an interesting use case that we might be able to improve in the future. #961 |
Closing in favor of the more general #961. |
Please see issue filed against built_value here:
google/built_value.dart#331
The build runner is failing to find a file, so it always does a full rebuild.
Any ideas, please?
The text was updated successfully, but these errors were encountered: