Skip to content

include's in hierarchic proto definitions use static path separator #284

@asprionj-NO

Description

@asprionj-NO

import statements in the .proto files lead to include statements in the generated julia code.
It seems that currently, OS-specific path separators are hard-coded in the generated code. At least I see \\ under Windows, and / under Linux. This makes code generated under Windows unusable under Linux.

  • Using / as well under Windows would work.
  • Cleanest would be to use joinpath.

Is there any reason not to do it, or potential pitfalls? I could not directly figure out where the exact paths are constructed and handed around, to then end up in the generated files. If you point me to it, I can also make a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions