hundreds-breakfast-49010
05/06/2020, 9:47 PMaloof-angle-91616
05/07/2020, 4:16 AMaloof-angle-91616
05/07/2020, 4:16 AMExecuteProcessRequest
=> Process
was also the right change to makealoof-angle-91616
05/07/2020, 4:18 AMaloof-angle-91616
05/07/2020, 4:19 AMaloof-angle-91616
05/07/2020, 4:19 AMaloof-angle-91616
05/07/2020, 4:56 AMawait Get[X](Y(...))
statements would make me drool right now but dropping in a pdb.set_trace()
is enough for right nowhundreds-father-404
05/07/2020, 6:44 PM./pants
, I’m getting this change automatically:
diff --git a/src/rust/engine/Cargo.lock b/src/rust/engine/Cargo.lock
index 310ba1f86..cb05e4b4e 100644
--- a/src/rust/engine/Cargo.lock
+++ b/src/rust/engine/Cargo.lock
@@ -3126,6 +3126,7 @@ source = "registry+<https://github.com/rust-lang/crates.io-index>"
dependencies = [
"bytes 0.5.4 (registry+<https://github.com/rust-lang/crates.io-index>)",
"fnv 1.0.6 (registry+<https://github.com/rust-lang/crates.io-index>)",
+ "futures-core 0.3.4 (registry+<https://github.com/rust-lang/crates.io-index>)",
"iovec 0.1.4 (registry+<https://github.com/rust-lang/crates.io-index>)",
"lazy_static 1.4.0 (registry+<https://github.com/rust-lang/crates.io-index>)",
"libc 0.2.69 (registry+<https://github.com/rust-lang/crates.io-index>)",
witty-crayon-22786
05/07/2020, 6:57 PMhundreds-father-404
05/07/2020, 6:59 PMpolite-garden-50641
05/07/2020, 11:52 PMaloof-angle-91616
05/08/2020, 11:01 AMaloof-angle-91616
05/08/2020, 11:03 AMMeasurements are cross-validated to ensure that sources of significant noise (usually other activity on the system) can be identified.which sounds like something i’ve literally never seen on any benchmark before
early-needle-54791
05/09/2020, 12:41 AMerror[E0658]: `&std::sync::Arc<InvalidationWatcher>` cannot be used as the type of `self` without the `arbitrary_self_types` feature
--> watch/src/lib.rs:256:28
|
256 | pub async fn watch(self: &Arc<Self>, path: PathBuf) -> Result<(), notify::Error> {
| ^^^^^^^^^^
|
= note: for more information, see <https://github.com/rust-lang/rust/issues/44874>
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
Its some kind of new experimental feature of rust, but I dont see a macro to enable it anywhere on master.early-needle-54791
05/09/2020, 3:39 AMgit checkout master
2. ./v2 fmt ::
3. Ctrl-c
while that is running. For me the pants process is unkillable with Ctrl-c. I bisected a version of this issue on my local 1.25.x-twtr branch and it seems to be introduced in https://github.com/pantsbuild/pants/pull/9674 If someone could give this repro a shot on theit machine, I will make an issue for it once its confirmed not just my machine.aloof-angle-91616
05/09/2020, 9:22 PM.expect_single()
method into Collection
instead of into Targets
?average-vr-56795
05/09/2020, 9:25 PMaloof-angle-91616
05/09/2020, 9:25 PMaloof-angle-91616
05/10/2020, 12:40 AMBox::pin(async move { ... }).compat()
? It's not clear to me why I'm being told this future is not `Send`:
error[E0277]: `dyn futures_io::if_std::AsyncRead + std::marker::Unpin` cannot be sent between threads safely
--> src/intrinsics.rs:350:4
|
350 | .to_boxed()
| ^^^^^^^^ `dyn futures_io::if_std::AsyncRead + std::marker::Unpin` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `dyn futures_io::if_std::AsyncRead + std::marker::Unpin`
aloof-angle-91616
05/10/2020, 12:41 AMfn fetch_cargo_packages(context: Context, args: Vec<Value>) -> NodeFuture<Value> {
let lockfile_contents: String = externs::project_str(&args[0], "contents");
let cargo_home_dir: String = context
.core
.cargo_fetcher
.download_dir
.to_str()
.unwrap()
.to_string();
let core = context.core.clone();
Box::pin(async move {
let _krates: Vec<_> = core
.cargo_fetcher
.fetch_packages(&lockfile_contents)
.await?;
Ok(externs::unsafe_call(
&core.types.construct_fetched_cargo_packages,
&[externs::store_utf8(&cargo_home_dir)],
))
})
.compat()
.to_boxed()
.map_err(|e: cargo_utils::CargoMetadataError| throw(&format!("{:?}", e)))
.to_boxed()
}
aloof-angle-91616
05/10/2020, 12:41 AMerror[E0277]: `dyn futures_io::if_std::AsyncWrite + std::marker::Unpin` cannot be sent between threads safely
--> src/intrinsics.rs:350:4
|
350 | .to_boxed()
| ^^^^^^^^ `dyn futures_io::if_std::AsyncWrite + std::marker::Unpin` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `dyn futures_io::if_std::AsyncWrite + std::marker::Unpin`
= note: required because of the requirements on the impl of `std::marker::Send` for `&mut dyn futures_io::if_std::AsyncWrite + std::marker::Unpin`
aloof-angle-91616
05/10/2020, 12:41 AMAsyncRead
and the AsyncWrite
are both causinig an erroraloof-angle-91616
05/10/2020, 12:43 AM= note: required because it appears within the type `std::future::GenFuture<[static generator@src/intrinsics.rs:339:23: 348:4 core:std::sync::Arc<context::Core>, lockfile_contents:std::string::String, cargo_home_dir:std::string::String for<'r, 's, 't0, 't1, 't2, 't3, 't4> {context::Core, std::sync::Arc<context::Core>, &'r cargo_utils::CargoPackageFetcher, cargo_utils::CargoPackageFetcher, std::string::String, &'s str, &'t0 std::string::String, impl core::future::future::Future, impl core::future::future::Future, (), ()}]>`
= note: required because it appears within the type `impl core::future::future::Future`
= note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<impl core::future::future::Future>`
= note: required because it appears within the type `std::boxed::Box<impl core::future::future::Future>`
= note: required because it appears within the type `std::pin::Pin<std::boxed::Box<impl core::future::future::Future>>`
= note: required because it appears within the type `futures_util::compat::compat03as01::Compat<std::pin::Pin<std::boxed::Box<impl core::future::future::Future>>>`
= note: required because of the requirements on the impl of `boxfuture::Boxable<core::Value, cargo_utils::CargoMetadataError>` for `futures_util::compat::compat03as01::Compat<std::pin::Pin<std::boxed::Box<impl core::future::future::Future>>>`
aloof-angle-91616
05/10/2020, 12:43 AMaloof-angle-91616
05/10/2020, 12:44 AM.await
is causing the problemaloof-angle-91616
05/10/2020, 12:44 AMAsyncRead
is or why it's not Send
, or how to make it Send
fast-nail-55400
05/10/2020, 12:47 AMfast-nail-55400
05/10/2020, 12:47 AMas Box<T + Send + whatever else>
fast-nail-55400
05/10/2020, 12:48 AMfast-nail-55400
05/10/2020, 12:48 AMas Box<dyn AsyncRead + Send>