schultek / dart_mappable

Improved json serialization and data classes with full support for generics, inheritance, customization and more.
https://pub.dev/packages/dart_mappable
MIT License
135 stars 20 forks source link

incorrect path in "part of" when generating into a subfolder #192

Open brash-ram opened 1 month ago

brash-ram commented 1 month ago

I specified build_extensions as in the example https://pub.dev/documentation/dart_mappable/latest/topics/Configuration-topic.html.

In all generated classes, the path for "part of" was generated with an incorrect path.

Generated code example:

part of '..\my_class.dart';

Correct path:

part of '../my_class.dart';

How can I solve this problem? I updated the library to the latest 4.2.2 version and it didn't help. I work on Windows.

schultek commented 4 days ago

Man I though by now I fixed all the path issues on windows. Will look into it.