dart-bot on master
Add pkg/analysis_server/pubspec… (compare)
dart-bot on master
First stab at tests for "Spread… (compare)
dart-bot on master
[vm, gc] Use work stealing for … (compare)
dart-bot on master
[vm] Simplify VirtualMemory::Tr… (compare)
dart-bot on master
[vm] Maintain view-ness of byte… (compare)
dart-bot on master
Add the capability in analysis … (compare)
dart-bot on master
Add a "summary-deps-output" opt… (compare)
dart-bot on master
Extract EnumListParameter value… (compare)
dart-bot on master
Fix override_on_non_overriding_… (compare)
pub run test -p node
works
webdev
is added to dev_dependencies
in pubspec.yaml
does that forces it to be used and auto-downloaded on every machine? Just been through a catastrophic 2.6.0 update and it’s not making a lot of sense that webdev
, build_runner
and build_compiler
are closely knit together without them being versioned tied as well.
We agree that the version coupling between webdev
and build_runner
is a problem - we had hoped that by not expressing it as a pub dependency it would give us leeway for a better UX but that hasn't worked out in practice. We don't have any short term plans here but finding a better way to handle versioning is something that we are interested in improving.
I'm a bit confused about what you mean about it being auto-downloaded on every machine. It is true that if we put more stuff into dev_dependencies
that everyone who works on the project and does a pub get
would download those packages. It doesn't impact anyone who depends on those packages though, so they don't put a download burden on further downstream stuff.
I'm trying to understand your main concern - is it related to having to download all these packages on each host you work on? Or on a continuous integration environment?
webdev
that makes the updates less painful in the future. It won't reduce the amount of downloading that needs to happen, but hopefully we can avoid those runtime version complains and make it so that a pub get
will just get you into a state where things work
@imerkle There's no generic TypedList
for Dart objects, and it looks like there's no builtin way to create a pointer-array of structs. I use this workaround to create a pointer from a struct list:
Pointer<T> createArrayPointer<T extends Struct>(List<T> list) {
final ptr = allocate<T>(count: list.length);
final size = sizeOf<T>();
for (var i = 0; i < list.length; i++) {
final asBytes = ptr.elementAt(i).cast<Uint8>();
final structData = list[i].addressOf.cast<Uint8>();
for (var j = 0; j < size; j++) {
asBytes[j] = structData[j];
}
}
return ptr;
}
You could turn that into a generic List
implementation on NativeType
webdev
which does pub run webdev
if you want the shorter command to run it.
stdout.write('foo')
then the listener callback would get that 'foo'
string.
Process