-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
add Classes to stub files #500
Comments
I'm not too familiar with exercism development or Pharo, but is the only way of doing this editing each of the stub files outside of Pharo? |
I also not , I see that the files are in the exercises directory but do not know how we can change them. And I thought about it, when we want to add the stub files , we have a lot of work to do for the current and for the challenges we added just because some one decided that tracks needs to have a stub file. Is it then not fair that the person who made the problems, also solve them. and for the test-runner, that is needed if we want to use the online ide , which I think never will happen for pharo because we cannot give them then the full pharo experience (TDD) , let the debugger make classes and methods and so on my 2 cts now I have thought about it |
I think that ship has sailed, nobody was keeping up with the changes for v3 of Exercism, or feeding back that this might be an issue. We are, as they say, where we are. Reading #478 (comment) more carefully, I thing I prefer @Bajger's (b) idea of getting Pharo to just ignore the stub file on fetch. I at least understand how that would work, and it would be lasting fix.
I agree with @RoelofWobben that at least having the option of generating the classes from the debugger when running the tests would be more idiomatic to Pharo development (or at least to how I've been doing it the last two months - what do I know?!) |
@bajgers have give me some code to ingnore the stub files when there are empty but that gave some more problems further in the chain. so maybe he knows a way to get around that |
@gypsydave5 Well, to ignore a empty file did chain of other problems (as Roelof reported). I think creating stub files with empty class definitions isn't so much complicated. We can generate them programatically, then export them to .st files that will be put to dedicated directory of local repo (clone of dev baseline). |
…sm#500 - necessitated a decoupling of the files from the valid files; the iterator now only uses the content dict for both filenames and contents
I've made a commit to my fork that looks like it works by ignoring any empty (nil content) file: I've tested it manually by fetching and submitting The unit tests have one failure, but I believe it to be unrelated. |
Following code should give class .st files. I still can try to ignore empty file:
|
What were they? I'd be interested as I've not hit anything (other than the weird coupling of data in the |
wow this is cool - going to have to give it a few more reads to understand it. |
Given #478 added stubs solution files to all of the exercises, which then breaks the fetching of exercises in Pharo (see #499), and also given the discussion on #478, we need to put classes inside these stubs.
Just opening this issue to give a place to start attacking and discussing the problem.
As we'll have to do this for all of the current exercises, and all future exercises, it seems like it would make the most sense if it was (at least eventually) automated.
I'm going to propose a script that could generate the right class based on the test files. Not sure if this would be more easily done in Pharo or something else.
The text was updated successfully, but these errors were encountered: