-
Notifications
You must be signed in to change notification settings - Fork 72
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
(sbt) Files not removed on subsequent codegen run #1527
Comments
I'm thinking to delete previously generated files in sbt only, because:
|
I'm not too sure what kind of impact deleting would have, which is why I elected not to do it in the first place. In the grand scheme of things it shouldn't matter too much, because SBT expects the smithy4s/modules/codegen-plugin/src/smithy4s/codegen/Smithy4sCodegenPlugin.scala Lines 291 to 293 in b96f736
So maybe this impacts the editor, but I'm not sure it's actually a good idea to clean up before regeneration. |
I think it does have impact, because your app code may still have references to the old files, and it'll compile locally but e.g. won't compile anymore when you push changes and CI runs on them. If we can access the list of previously generated files, removing them is IMO the right thing to do, but I suppose we should see what other codegens do, like scalapb. |
What I'm saying is that it won't compile locally, at least I don't think it will compile in SBT. |
oh I see what you mean - the files not on the list shouldn't be included in the compilation, so only the IDE will see them, at least (I guess) until you re-import your project. |
To reproduce:
Example:
Screen.Recording.2024-05-16.at.23.42.18.mov
Happens in 0.18.18.
The text was updated successfully, but these errors were encountered: