Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate_rust fails in GitHub Actions with io error #171

Closed
Zk2u opened this issue Jan 29, 2023 · 4 comments
Closed

generate_rust fails in GitHub Actions with io error #171

Zk2u opened this issue Jan 29, 2023 · 4 comments

Comments

@Zk2u
Copy link
Contributor

Zk2u commented Jan 29, 2023

Having issues with a GH Action running Planus. It installs with Cargo. planus check runs okay.

Screenshot 2023-01-29 at 12 04 20

It's failing somewhere in here:

pub fn generate_rust(declarations: &Declarations) -> Result<String, CodegenError> {

@TethysSvensson
Copy link
Collaborator

I am not sure if we have enough context to diagnose this. Can you run it with RUST_BACKTRACE=1 as suggested?

@Zk2u
Copy link
Contributor Author

Zk2u commented Feb 3, 2023

image

@TethysSvensson
Copy link
Collaborator

This is definitely a bug in terms of error reporting on our side.

I think the underlying issue might be that you do not have rustfmt installed in the CI environment. Could you verify whether that is the case?

@Zk2u
Copy link
Contributor Author

Zk2u commented Feb 4, 2023

Can confirm that it was because rustfmt wasn't installed. All working now. We can open a new issue and reference this to fix the error reporting here.

@Zk2u Zk2u closed this as completed Feb 4, 2023
TethysSvensson added a commit that referenced this issue Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants