Conversation
TheRealOwenRees
commented
Mar 10, 2026
- Auto generate interface files on exercise creation
- Copy interface files for testing
- Add interface files to existing exercises
| "exemplar": [ | ||
| ".meta/src/%{pascal_slug}.res" | ||
| ], | ||
| "editor": [ |
There was a problem hiding this comment.
I made a mistake here. https://exercism.org/docs/building/tracks/config-json indicates an editor file is read-only which is not what we want. The interface file will need to go under solution not editor.
There was a problem hiding this comment.
"example": [
".meta/%{pascal_slug}.res",
".meta/%{pascal_slug}.resi"
],it is added here, so that it populates the src folder.
If I move the current .resi file out of the editor section, there will be no editor file. Would that be correct?
There was a problem hiding this comment.
We want the .resi in example, exemplar, and solution for consistency. That makes the interface file available and most importantly editable in the online editor for students, but also then configlet creates it when adding concept and practice exercises so contributors can have their own interface files for the example/exemplar solutions.
There was a problem hiding this comment.
So example/exemplar section is for writable files in the editor, but the editor section is for non-writable files that we still want to show in the editor for reference.
There was a problem hiding this comment.
I believe that this is the case currently. Unless I have missed something. The editor files are created by configlet, and we will need to just change the types on that so the student sees them, and the .resi file should be placed alongside the example file in /src.
It is quite probable that my brain is not full awake.
There was a problem hiding this comment.
I think I see, there is not a .resi file in the exemplar section. Are we using the example as an exemplar solution too? I have not seen this in the wild before.