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

[BUG] an empty file \lib\swagger_dart_code_generator_temp.dart remains after successful build #352

Closed
dJani97 opened this issue Mar 2, 2022 · 1 comment
Assignees
Labels
bug Something isn't working Triage needed

Comments

@dJani97
Copy link

dJani97 commented Mar 2, 2022

Describe the bug
An empty file \lib\swagger_dart_code_generator_temp.dart is left behind after each build. I don't recall having this problem in earlier versions, but I don't know exactly when it got introduced.

To Reproduce

git clone https://github.com/epam-cross-platform-lab/swagger-dart-code-generator
cd .\swagger-dart-code-generator\example
flutter pub get
flutter packages pub run build_runner build --delete-conflicting-outputs

Expected behavior
I would expect temp files to be deleted, or be used outside of the /lib folder.
I also suggest removing this file not only in case of success, but also in case of a build failure.

Library version used (latest of everything, as of today):
OS: Windows 11
Flutter 2.10.2 • channel stable
swagger_dart_code_generator: ^2.4.2
chopper_generator: ^4.0.5
json_annotation: ^4.4.0
json_serializable: ^6.1.4

@dJani97 dJani97 added bug Something isn't working Triage needed labels Mar 2, 2022
@Vovanella95
Copy link
Collaborator

Fixed here: #353

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Triage needed
Projects
None yet
Development

No branches or pull requests

3 participants