When I try to implement WASIp2's wasi-filesystem, an error "Cannot instantiate resource as type" occursed by filesystem-error-code: func(err: borrow<error>) -> option<error-code>;.
I found the reason is generate_types untreated Multilevel indirect references to resources.
But, I can't sure to should chang id. Please review this code. thanks.
When I try to implement WASIp2's
wasi-filesystem
, an error "Cannot instantiate resource as type" occursed byfilesystem-error-code: func(err: borrow<error>) -> option<error-code>;
. I found the reason isgenerate_types
untreated Multilevel indirect references to resources. But, I can't sure to should chang id. Please review this code. thanks.Simple WIT Example
Related Issue:https://github.com/DouglasDwyer/wasm_component_layer/issues/7, https://github.com/DouglasDwyer/wasm_component_layer/issues/17, https://github.com/DouglasDwyer/wasm_component_layer/issues/16 Related Commit: https://github.com/DouglasDwyer/wasm_component_layer/commit/30c202620c0b35cdfcaef829ea4e7b70ba4516dc