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

Fixed various bugs #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed various bugs #2

wants to merge 1 commit into from

Conversation

potocpav
Copy link

While trying to use rome to generate Turtle parser code (for lv2 plugins), I fixed several issues:

  • the output directories in generate_code.rs weren't created,
  • TransitiveIterator wasn't working for transitive dependencies,
  • some macros weren't exported, which made the generated code not compile in other crates,
  • graph::IRIPtr; generated errors on compilation, replaced with self::graph::IRIPtr.

Copy link
Owner

@vandenoever vandenoever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you show or add a test for the problem with TransitiveIterator?

@@ -377,7 +377,8 @@ fn uses(o: &Output, classes: bool) -> String {
fn write_files(o: &Output, writers: &Writers, folder: &str, classes: bool) -> rome::Result<()> {
let uses = uses(o, classes);
let dir_path = o.output_dir.join(folder);
if !fs::metadata(&dir_path)?.is_dir() {
let metadata = fs::metadata(&dir_path);
if !fs::metadata(&dir_path).is_ok() || !metadata?.is_dir() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if !metadata.is_ok() || !metadata?.is_dir() {

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