java
java copied to clipboard
Add exercises' extra files to files.editor or files.solution
Recently in my mentoring, I noticed that some exercises have some files that are part of the solution (but the student shouldn't modify them) that are not appearing on the online editor and they should. The reason for this is that these extra files are not in the files.solution or files.editor keys of .meta/config.json on each exercise.
An example of this is the Triangle exercise. The file TriangleException.java is something the student must be aware it exists, although the file shouldn't be modified. This file should then be included in the files.editor key of .meta/config.json of this exercise just it shows up in the editor, both for students and mentors.
There are other exercises with a similar problem and ideally, we should identify and fix all the exercises that have these extra files that are not being acknowledged in the files.editor or files.solution keys of .meta/config.json.
Contributing to this issue
If you want to contribute to this issue, comment below your intention!
Even though ideally we should fix this in all exercises that suffer from this issue, PRs that fix this in a single exercise or just a few exercises are welcome.
Some useful links:
PS: I imagine it wouldn't be difficult to make a script that tries to identify exercises with this issue and try to fix the .meta/config.json manually. The script could read the exercises' folders and check for files that are not in config.json and add them to files.editor by default. If you create such script, feel free to share it with us and use it to create PR(s).