capnproto / capnpc-rust

Cap'n Proto code generation for Rust
75 stars 26 forks source link

The example just hangs #7

Closed bfops closed 9 years ago

bfops commented 9 years ago

For some reason, running the example just hangs on p.wait(). Running the commands manually doesn't seem to cause a problem. I'm on rustc 1.0.0-nightly (2fc8b1e7c 2015-03-07) (built 2015-03-08).

bfops commented 9 years ago

Ah actually, manually running the commands gives errors for:

using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("addressbook");

Removing those makes it work..

dwrensha commented 9 years ago

Ouch. There was a bug where a premature EOF would cause an infinite loop. Fixed here: https://github.com/dwrensha/capnproto-rust/commit/ba62726d0566d9b976771ec5c30decc83c4c680f

Now you should get an error indicating that the import failed.

bfops commented 9 years ago

Oh, heh. Works perfectly now, thanks!