Skip to content

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?

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