Skip to content
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

Unable to run koan using contemplate koans after update to PHP8.1 #12

Open
LeWricka opened this issue Nov 30, 2022 · 7 comments · May be fixed by #13
Open

Unable to run koan using contemplate koans after update to PHP8.1 #12

LeWricka opened this issue Nov 30, 2022 · 7 comments · May be fixed by #13

Comments

@LeWricka
Copy link

LeWricka commented Nov 30, 2022

Due to the latest updates to PHP 8.1, running the koan using php contemplate_koans is not working anymore, see picture below:
Screenshot 2022-11-30 at 17 47 20

We can improve the way koans are executed and we can simplify the project by avoiding running the koans using contemplate and run them using phpunit.

@LeWricka LeWricka linked a pull request Nov 30, 2022 that will close this issue
@miker
Copy link

miker commented Apr 9, 2023

Weird. According to the PHPUnit section of the README all they did was rename phpunit (or was it the PHAR binary?) to 'contemplate_koans'. Not saying you or this issue is wrong. It just seems weird as this doesn't seem to be the case after looking at your PR.

I haven't looked at any of the code for this project or done anything more than read the README to see if it's something I wanted to check out to get better with PHP.

This issue is nearly 6 months old and doesn't look to be acknowledged let alone addressed. Has the project been abandoned?

@akoebbe
Copy link
Owner

akoebbe commented Apr 11, 2023 via email

@LeWricka
Copy link
Author

Hi, @akoebbe in our case (we are a small company) we could like to help evolving the project. That's the reason for the issue and the pull request updating and simplifying the project.

If the idea is to maintain it, we could help adding more koans.

@miker
Copy link

miker commented Apr 13, 2023

Sorry I’ve been absent from this project for so long. I hope to get back to it this week or next.

No worries, real life definitely gets in the way. Glad to hear you are still working on this. I always liked the idea of doing koans to help with learning a language. Looking forward to more koans being added.

I hope to have time today to check out the project in it's current state. Any info on this issue?

Also what version of PHP is the project actually targeting?

LeWricka awesome of you (and your company) offering to assist adding koans!

@LeWricka
Copy link
Author

Hey! coming back to this. @akoebbe is there any chance to keep going with the koans? We Ithink it is an interesting tool and we could like to invest time on it, but we are block since some months.
Can we keep going somehow? I could like to avoid forking the project, I think is better for everyone to keep going on this base :)

@akoebbe
Copy link
Owner

akoebbe commented Jul 9, 2023

Hey @LeWricka. I definitely want to keep going on this. I am sorry for not having the time to stay on top of this. I did try to get make some progress awhile back but I ended up hitting some trouble doing what I wanted to. There are a few issues that I'd like to get resolved before people spend too much time with new koans. I'll make separate issues so that either I or anyone else can try to address them.

  1. phpunit no longer supports custom printers, which is what I was using to make the phpunit output more user friendly for newer programmers. (update: maybe this is a pattern we could follow?)
  2. I don't want to have to manually check-in the phpunit.phar (renamed contemplate_koans in this repo) when there is a phpunit version bump. My main concern is that someone would submit a PR with a malicious version and there would be no checks. I'd like to get some sort of github actions pipeline going that would automatically pull in the latest version of phpunit.phar and rename it to contemplate_koans
    • There might be a question "Why not just use a composer file to include phpunit?" This is because I want the curve for new developers to be very shallow. I do not want them to have to learn what composer is, how to install it, and install the dependencies. Even after all of that, actually executing phpunit is not straight forward and might scare people away.

So these are the two main roadblocks I see. Perhaps I'm getting ahead of myself and these issues are pointless if there aren't enough koans for people to use.

@LeWricka
Copy link
Author

LeWricka commented Jun 11, 2024

@akoebbe sorry for not answering in a while.
Have a look at this PRs, it changes the way we used to work in the repo.
Also due to the rhythm on this repo we have keep going here: https://github.com/540/php_koans but we could keep going here if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants