Aggregation of directives from multiple files - yay or nay? #308
Replies: 2 comments 2 replies
-
I just wanted to bring forward my use case which consists of a fixed number of files (2 right now) for a scaffolding of a cookie-cutter project. Having directives in both files helps a lot since the files have two different owners and one of them only has one directive which is unlikely to clash with the other user file. This two file setup might be useful in cases where the input of a system is a program, like an interview take-home problem or an online teaching platform. |
Beta Was this translation helpful? Give feedback.
-
I think we should discourage using directives multiple files as much as possible unless a user knows what they are doing. Setting Anyway, for sure this might cause a lot of pain for some users, so a warning is a minimum we can do. We also want to create a command to migrate everything into single file as automatic solution. Do let us know if you feel like we can do more or you have some ideas about how to make it safer in the long run. |
Beta Was this translation helpful? Give feedback.
-
The docs state that
while also acknowledging that
The proposed solution is to
In my opinion, the proposed solution is not sufficient. I think it would be better for the users, that they are aware of the project-wise nature of the directives early on. Ideally, directives would live at the program entry point or in the separate
scala.conf
(program-name.scala-conf
?) file (I'm not in favor of putting uncommented directives into scala files, because of tooling ecosystem incompatibility). I think that directives distributed across many files should be reported as an error.The reasons against allowing people to distribute directives:
Beta Was this translation helpful? Give feedback.
All reactions