Skip to content

Creating new types breaks precompilation #22

@bc0n

Description

@bc0n

In the current macros, new types are created in UnitTypes' namespace but this breaks precompilation:

ERROR: LoadError: Evaluation into the closed module `UnitTypes` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other 
module mutating `UnitTypes` with `eval` during precompilation - don't do this.
...
in expression starting at W:\mechgits\julia\Geometry2D_public\src\Spiral2D.jl:18 
...
@makeBaseMeasure Pitch MeterPerRev "m/rev"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions