-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
VisualizerTask bug #1388
Comments
My first guess is that the visualizer task uses
Response::send from guzzle which might be renamed or so in a newer version?
Jawira Portugal <notifications@github.com> schrieb am Sa. 29. Aug. 2020 um
18:38:
…
Hi, I just updated to *phing-3.0.0-alpha4* and I have a bug with
*VisualizerTask*.
My buildfile:
<?xml version="1.0" encoding="UTF-8" ?>
<project name="testing" default="visualizer">
<target name="visualizer">
<visualizer/>
</target>
</project>
The output:
$ phing -f demo.xml
Buildfile: /home/jawira/PhpstormProjects/case-converter/demo.xml
testing > visualizer:
BUILD FAILED
Call to undefined method GuzzleHttp\Psr7\Response::send()
#0 phar:///usr/local/bin/phing/classes/phing/tasks/ext/visualizer/VisualizerTask.php(145): VisualizerTask->generateImage()
phingofficial/guide#1 phar:///usr/local/bin/phing/classes/phing/UnknownElement.php(112): VisualizerTask->main()
phingofficial/guide#2 [internal function]: UnknownElement->main()
phingofficial/guide#3 phar:///usr/local/bin/phing/classes/phing/dispatch/DispatchUtils.php(84): ReflectionMethod->invoke()
phingofficial/guide#4 phar:///usr/local/bin/phing/classes/phing/Task.php(186): DispatchUtils::main()
phingofficial/guide#5 phar:///usr/local/bin/phing/classes/phing/Target.php(379): Task->perform()
phingofficial/guide#6 phar:///usr/local/bin/phing/classes/phing/Target.php(409): Target->main()
phingofficial/guide#7 phar:///usr/local/bin/phing/classes/phing/Project.php(784): Target->performTasks()
phingofficial/guide#8 phar:///usr/local/bin/phing/classes/phing/Project.php(754): Project->executeTarget()
phingofficial/guide#9 phar:///usr/local/bin/phing/classes/phing/Phing.php(750): Project->executeTargets()
phingofficial/guide#10 phar:///usr/local/bin/phing/classes/phing/Phing.php(220): Phing->runBuild()
phingofficial/guide#11 phar:///usr/local/bin/phing/classes/phing/Phing.php(368): Phing::start()
phingofficial/guide#12 phar:///usr/local/bin/phing/bin/phing.php(60): Phing::fire()
phingofficial/guide#13 /usr/local/bin/phing(6): include('phar:///usr/loc...')
phingofficial/guide#14 {main}
Total time: 0.6604 seconds
Call to undefined method GuzzleHttp\Psr7\Response::send()
I'm more than willing to help with a PR, but I will need some pointers
please.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/phingofficial/guide/issues/14>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQMYRNWPMRN64BBDITVYZ3SDEVILANCNFSM4QPCU72A>
.
|
@jawira there is a problem in https://github.com/phingofficial/phing/blob/master/classes/phing/tasks/ext/visualizer/VisualizerTask.php#L359 , which calls an undefined method |
Some suggestions: move the http-client instantiation from HttpTask::request() to the constructor and use the http-client inside the visualizer task to send the request. |
Thanks for the advice. IMHO the problem is |
Hello, I fixed the bug #1390 :) |
@jawira just merged :) |
Hi, I just updated to phing-3.0.0-alpha4 and I have a bug with VisualizerTask.
My buildfile:
The output:
I'm more than willing to help with a PR, but I will need some pointers please.
The text was updated successfully, but these errors were encountered: