thlorenz / rid

Rust integrated Dart framework providing an easy way to build Flutter apps with Rust.
63 stars 4 forks source link

'Build failed: No such file or directory (os error 2)' #20

Closed cipherchabon closed 2 years ago

cipherchabon commented 3 years ago

When I try to run the ./sh/bindgen script in the flutter examples on Linux, I get this error:

thread 'main' panicked at 'Build failed: No such file or directory (os error 2)', rid_build.rs:29:26

And line 29 is this:

let tmp_dir = tempdir().context("Failed to create tmpdir")?;

It seems to be a problem with tempfile.

I have not been able to solve it yet but if I succeed I will report it here.

thlorenz commented 3 years ago

Could you please file an issue with the tempfile crate and link that issue here so we can track the progress? Thanks.

cipherchabon commented 3 years ago

Could you please file an issue with the tempfile crate and link that issue here so we can track the progress? Thanks.

https://github.com/Stebalien/tempfile/issues/152

thlorenz commented 3 years ago

Could you figure out your problem with the indication they gave you in the issue? i.e. have you tried something like echo $TMPDIR or ls $TMPDIR?

I'm certain though that either way this is not a problem with rid, so we can probably close this issue.

cipherchabon commented 3 years ago

The instructions I was given did not help me. I have set TMPDIR correctly, but the error persists.

I'm honestly frustrated, but it's clear that it's a problem in my environment. I will continue to investigate.

thlorenz commented 2 years ago

Closing since we determined that the problem is not with rid here.