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

fix FileNotFoundError when installing irust_kernel #124

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

eatPizza311
Copy link
Contributor

After looking into the crates/irust_repl/irust_kernel/irust_kernel/install.py, I found only a missing path irust_repl_dir while declaring src = os.path.join(cargo_target_dir, "release", "examples", "re") on line 51.
Since on line 49, set the cwd to irust_repl_dir.
So, I created this pull request to address #123 and the installation works perfectly.

FileNotFoundError: [Errno 2] No such file or directory: 'target/release/examples/re'
@sigmaSd
Copy link
Owner

sigmaSd commented Oct 12, 2023

Thanks nice catch!

Unfortunately this breaks $CARGO_TARGET_DIR workflow, can you try this instead

subprocess.run(["cargo", "b", "--release", "--example", "re", "--target-dir",cargo_target_dir, "--manifest-path", os.path.join(irust_repl_dir,"Cargo.toml")])

and if it works update the pr with it

@eatPizza311
Copy link
Contributor Author

eatPizza311 commented Oct 12, 2023

Yeah, sure. Thanks for pointing out.
Let me try!

@eatPizza311
Copy link
Contributor Author

I've tested it, and it worked. Update the PR accordingly.

@sigmaSd
Copy link
Owner

sigmaSd commented Oct 12, 2023

thanks again

@sigmaSd sigmaSd merged commit f692a51 into sigmaSd:master Oct 12, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants