Open eivanr opened 10 years ago
It works!
will only work on the v1.0 tag. Try downloading https://github.com/eddieajau/tagaliser/archive/v1.0.zip
Andrew,
Good to hear from you; have been trying to make contact for some time.
Have done as suggested, downloading v1.0 and part way through the composer install process, the following is displayed:-
'[Composer\Downloader\TransportException] The "https://api.github.com/repos/joomla/joomla-framework-client/zipball/1.0-beta2" file could not be downloaded'.
Previously had the same responses with versions 1.1 and 1.2.
Version 1.3 / 2.0 completes the composer install process and then, having entered ‘php –f bin\tagaliser.php’, hits the
[date time] Tagaliser.Info: Github user="github_user_name", repository="github-repo"> [] [] Could not resolvehost: :username: ; Host not found
response mentioned earlier.
With a yob of 1937 and a few grey hairs left, learning how to use this framework, or any other, is not critical – just a good mental exercise. But, if its of any use to you or other people writing tutorials, I do have time available to check them out, verifying that they do what they say they do. I believe you would agree that tutorials that do not work as suggested are not good adverts for the products they relate to and are likely to discourage potential users.
Hope to hear from you soon.
Regards,
Ivan
From: Andrew Eddie Sent: Tuesday, November 19, 2013 11:25 AM To: eddieajau/tagaliser Cc: eivanr Subject: Re: [tagaliser] Tagaliser - It works! - Regrettably, in my environment, it does NOT (#12)
It works! will only work on the v1.0 tag. Try downloading https://github.com/eddieajau/tagaliser/archive/v1.0.zip
— Reply to this email directly or view it on GitHub.
Hi Ivan. Ok I understand a little more what might be happening. What does your config.json file look like? (Blank out any password)
Regards, Andrew Eddie http://learn.theartofjoomla.com - free tutorials and videos on Joomla development
Andrew,
Thanks for your response.
Content of config.json, when copied from config.dist.json, is
{ "profiles" : { "default" : { "api" : { "username" : ":username", "password" : ":password", "url" : null }, "github" : { "user" : ":github_user_name", "repo" : ":github_repo" } } } }
Command used = php –f bin/tagaliser.php -- --user=eivanr –repo=tagaliser
When running the above command, with config.json github lines set to :- "user" : ":github_user_name", and "repo" : ":github_repo",
or edited to,
"user" : "" and "repo" : “",
the result is
[date time] Tagaliser.Info: Github user="eivanr", repository="tagaliser"> [] [] Could not resolve host: :username: ; Host not found.
However, removing the ‘api’ section, and running with config.json as shown below, { "profiles" : { "default" : { "github" : { "user" : ":github_user_name", "repo" : ":github_repo" } } } }
produces:-
[date time] Tagaliser.INFO: Github rate limit 60 <60 remaining> [] [] [date time] Tagaliser.INFO: Getting releases [] [] [date time] Tagaliser.INFO: Getting pulls page #01. [] [] [date time] Tagaliser.INFO: Got 0 merged pulls. [] []
Looks promising but rather empty.
Hope this helps.
Regards,
Ivan From: Andrew Eddie Sent: Tuesday, November 19, 2013 8:42 PM To: eddieajau/tagaliser Cc: eivanr Subject: Re: [tagaliser] Tagaliser - It works! - Regrettably, in my environment, it does NOT (#12)
Hi Ivan. Ok I understand a little more what might be happening. What does your config.json file look like? (Blank out any password)
Regards, Andrew Eddie http://learn.theartofjoomla.com - free tutorials and videos on Joomla development — Reply to this email directly or view it on GitHub.
Andrew,
Hope these observations and suggestions help you and earn me access to the part 3 videos (2.18 through 2.25) of your earlier tutorial. x When running ‘composer install’ against un-zipped versions 1.0, 1.1 and 1.2, the process fails on ‘joomla-framework-client/zipball’. x Running ‘composer install’ against an un-zipped ‘tagaliser-master.zip’, completes satisfactorily. x To follow the flow detailed in lessons 1 through 11, when working from ‘tagaliser-master.zip’, I found the changes detailed below to be necessary. x Having copied ‘config.dist.json’ to ‘config.json’, replace the default “:xxxxxx” values for both the ‘api’ and ‘github’ sections with actual values. x For lesson 1. In /src/Tagaliser/Application.php, replace ‘parent::execute();’ in line 74 with ‘$this->out('It works!');’ x For lesson 5. Again, in /src/Tagaliser/Application.php, replace ‘$this->out('It works!'); ’ in line 74 with:- x /* @var $github \Joomla\Github\Github / $github = $this->container->get('github'); x $this->out('Repositories:'); x foreach ($github->repositories->getListOrg('joomla') as $repository) { $this->out(' ' . $repository->name); } x For lesson 11.Again, in /src/Tagaliser/Application.php, replace the above code with ‘parent::execute();’ x Using ‘eddieajau’ as opposed to ‘eivanr’, as the user in the github section of config.json, again with ‘tagasliser’ as the repo produces a meaningful (as described) output. x However, the last line shows:- [date time] Tagaliser.DEBUG: Creating new release for ‘v2.0.1’ [] [] x Feedback on a few suspect links within the Art of Joomla website is available if of interest. x Hoping to be given, or advised how to gain, access to the ‘front-end’ videos. x Regards, x Ivan
From: Andrew Eddie Sent: Tuesday, November 19, 2013 8:42 PM To: eddieajau/tagaliser Cc: eivanr Subject: Re: [tagaliser] Tagaliser - It works! - Regrettably, in my environment, it does NOT (#12)
Hi Ivan. Ok I understand a little more what might be happening. What does your config.json file look like? (Blank out any password)
Regards, Andrew Eddie http://learn.theartofjoomla.com - free tutorials and videos on Joomla development — Reply to this email directly or view it on GitHub.
Environment - Xampp, PHP 5.4.7 Win 7
tagaliser-master.zip extracted to f:\xampp\htdocs\tagaliser.
composer - install; from f:\xampp\htdocs\tagaliser now runs to completion - used to fail on zippball in versions 1.0, 1.1 and 1.2.
config.dist.json copied and re-named to config.json.
Entering, from f:/xampp\htdocs\tagaliser>, php -f bin\tagaliser.php produces the following response:-
[date time] Tagaliser.Info: Github user="github_user_name", repository="github-repo"> [] [] Could not resolvehost: :username: ; Host not found
Instructions suggest that the response should have been 'It works!'
Adding -- --user=eivanr --repo=tagaliser to the string entered, produces the same result.
eivanr is a valid github user and has repository named tagaliser.
Suggestions as to what I am doing incorrectly or adjustment to tagaliser code, if appropriate, would be appreciated.
Thank you,
Ivan Rutter
ivan.rutter@btconnect.com