# |
Jul 17th 2021, 12:41 |
kevin.pfeifer |
try with `-vvv` and see if you can spot something odd |
# |
Jul 17th 2021, 12:40 |
neothermic |
1.1T left, directory is fully RW just to be sure |
# |
Jul 17th 2021, 12:40 |
kevin.pfeifer |
and I guess you have already checked the basics like write permissions of the folder and enough disk space |
# |
Jul 17th 2021, 12:38 |
kevin.pfeifer |
you tried to add `-v` (or more v) for vebose output |
# |
Jul 17th 2021, 12:38 |
kevin.pfeifer |
mhmm, same for me |
# |
Jul 17th 2021, 12:38 |
neothermic |
Composer version 2.1.3 2021-06-09 16:31:20 |
# |
Jul 17th 2021, 12:37 |
neothermic |
nah, latest 2 |
# |
Jul 17th 2021, 12:37 |
neothermic |
hmm, did a composer clear-cache and tried again... and still failed |
# |
Jul 17th 2021, 12:37 |
kevin.pfeifer |
are you using composer 1? |
# |
Jul 17th 2021, 12:34 |
neothermic |
happens every time here ¬_¬ |
# |
Jul 17th 2021, 12:30 |
kevin.pfeifer |
no problem here for me. Neither with composer 1 nor composer 2 |
# |
Jul 17th 2021, 12:24 |
slackebot2 |
the same way) |
# |
Jul 17th 2021, 12:24 |
slackebot2 |
No such file or directory), uninstalling plugin - Removing cakephp/plugin-installer (1.3.1) Install of cakephp/plugin-installer failed [RuntimeException] Could not delete /vagrant/SomeProject/vendor/cakephp/plugin-installer/src:``` I can see the fact that Plugin.php exists where it says it thinks it's not, so unsure why, but basically I can't progress (and cd-ing into the project directory and running composer install fails in |
# |
Jul 17th 2021, 12:24 |
neothermic |
so, trying to do a fresh cake3 install, it seems to be unhappy with execution: I ran: ```composer create-project --prefer-dist cakephp/app:^3.8 SomeProject``` It chugged through, but `cakephp/plugin-installer` fails every time: ``` - Installing cakephp/plugin-installer (1.3.1): Extracting archive Plugin initialization failed (include(/vagrant/SomeProject/vendor/cakephp/plugin-installer/src/Plugin.php): failed to open stream: |
# |
Jul 17th 2021, 12:00 |
kevin.pfeifer |
you can also set `stopOnFailure="true"` in your phpunit.xml |
# |
Jul 16th 2021, 21:47 |
greg138 |
One of your tests (or the code that it tests) is throwing an unexpected exception. phunit should give you the stack track of where that's happening. |
# |
Jul 16th 2021, 19:06 |
slackebot2 |
$this->request->getQueryParams('params'); $this->loadModel('Users'); $userAdmin = $this->Users->get(1); MercadoPago\SDK::setAccessToken($userAdmin->mp_access_token); $payment1 = MercadoPago\Payment::find_by_id($mpUrlNotif['id']); debug($payment1); exit; }``` this code is sending a 201 response and is showing the debug too |
# |
Jul 16th 2021, 19:06 |
sebastiansperandio093 |
I achieved to send a 201 response to the API which is notifying me and after of that response, I can continuw with my work inside the same method... ```public function mpNotification() { $this->response = $this->response->withStatus(201); $this->response->send(); $this->autoRender = false; $mpUrlNotif = |
# |
Jul 16th 2021, 19:03 |
sebastiansperandio093 |
fixed |
# |
Jul 16th 2021, 18:59 |
tyler.adam.lazenby |
it just timed out |
# |
Jul 16th 2021, 18:59 |
kevin.pfeifer |
what, that phpunit doesn't fail even if there are error? |
# |
Jul 16th 2021, 18:56 |
tyler.adam.lazenby |
is that normal |
# |
Jul 16th 2021, 18:56 |
tyler.adam.lazenby |
hmmmm but the command is still running |
# |
Jul 16th 2021, 18:56 |
tyler.adam.lazenby |
now I see |
# |
Jul 16th 2021, 18:56 |
tyler.adam.lazenby |
oh ok |
# |
Jul 16th 2021, 18:54 |
tyler.adam.lazenby |
what the heck is that mess |
# |
Jul 16th 2021, 18:54 |
kevin.pfeifer |
well ,:) |
# |
Jul 16th 2021, 18:53 |
tyler.adam.lazenby |
```C:\xampp\htdocs\ezBusinessManager>composer run test > phpunit --colors=always PHPUnit 9.5.6 by Sebastian Bergmann and contributors. Runtime: PHP 8.0.3 Configuration: C:\xampp\htdocs\ezBusinessManager\phpunit.xml EREIIIE### hello world ### RRRRRRRRRRRRRRRIIEEEEEEIIIIIIIIIIIIIIIIIIIIIIIIIEEEEEWEE 63 / 421 ( 14%) EEERRRRRRRRRRRRRRREEEEREEEWWWWWWWE``` |
# |
Jul 16th 2021, 18:53 |
tyler.adam.lazenby |
what the... |
# |
Jul 16th 2021, 18:51 |
tyler.adam.lazenby |
I am doing this more to make sure that the unit tests are forced into our pipeline since more developers will be coming down |
# |
Jul 16th 2021, 18:50 |
tyler.adam.lazenby |
Yes and no |
# |
Jul 16th 2021, 18:45 |
kevin.pfeifer |
seems like we both miss-understood the 201 location definition https://stackoverflow.com/questions/4584728/redirecting-with-a-201-created |
# |
Jul 16th 2021, 18:38 |
sebastiansperandio093 |
thanks for answered |
# |
Jul 16th 2021, 18:37 |
kevin.pfeifer |
but your phpunit tests work without it being executed by the gitlab CLI tool? |
# |
Jul 16th 2021, 18:37 |
tyler.adam.lazenby |
I am just trying to create a gitlab CI that will run the unit tests, and run the phpstan script |
# |
Jul 16th 2021, 18:36 |
kevin.pfeifer |
oh sorry, 201 should actually do that, didn't know that |
# |
Jul 16th 2021, 18:35 |
kevin.pfeifer |
@sebastiansperandio093 a 201 is not a HTTP repsonse which redirects automatically If you just update the location header the Browser wont just go to that location as far as I know You will have to implement some JS logic which checks that location header and then redirects to that |
# |
Jul 16th 2021, 18:34 |
kevin.pfeifer |
what "pipelines" are you running here? |
# |
Jul 16th 2021, 18:32 |
tyler.adam.lazenby |
I had to run the configuration generator first |
# |
Jul 16th 2021, 18:28 |
tyler.adam.lazenby |
I am wondering if I need to alter it to allow stack tracing |
# |
Jul 16th 2021, 18:28 |
tyler.adam.lazenby |
I literally looked at my code and line 98 is just exception thrower |