#wordpress 2019-06-24

2019-06-24 UTC
[fluffy] and [Michael_Beckwit joined the channel
#
[Michael_Beckwit
i wish more services offered webhooks, it’d help with syndication
MarcoZDe joined the channel
#
GWG
Oh?
#
[Michael_Beckwit
at least if you’re posting on their things first
[jgmac1106], [eddie], Nebulous[m], gRegorLove, gRegorLove_, ritewhose[m], nellkate1[m], [infominer], [kevinmarks786] and [xavierroy] joined the channel
#
[xavierroy]
[dshanske] Just updated it... Will check it out
[jgmac1106], jgmac1106, sacha[m], aeddi[m]1, kiwibe[m], manfred[m], Giyomu[m] and jeremycherfas joined the channel
jgmac1106, chimo, [kevinmarks786], new0ne[m], [grantcodes], jackjamieson, [jgmac1106], jackjami_ and gRegorLove joined the channel
#
GWG
jackjamieson, saw the merge
#
jackjamieson
GWG, thanks for that - seems good but actually I'm still checking a few things. The copy-files command doesn't seem to run upon update, and when I try to run it directly I'm getting an error. Probably just a misunderstanding of composer - I'll poke around a bit and write a comment to the PR with more info if needed
#
GWG
jackjamieson, what erorr?
#
GWG
error?
#
jackjamieson
"cp: illegal option -- u "
#
jackjamieson
The full output:
#
jackjamieson
Jacks-MacBook-Pro-3:yarns-microsub-server jackjamieson$ php composer.phar copy-files
#
jackjamieson
> cp -u -r vendor/parse-this/*.php lib/parse-this
#
jackjamieson
cp: illegal option -- u
#
jackjamieson
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
#
jackjamieson
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
#
jackjamieson
Script cp -u -r vendor/parse-this/*.php lib/parse-this handling the copy-files event returned with error code 64
#
GWG
That is interesting
#
jackjamieson
Just ran self-update on composer to see if that made a difference, but no luck
#
GWG
Try adding --parents to the copy command on each line?
#
GWG
I may have created the directory first
#
GWG
That should solve it
#
GWG
I am only using composer as a dev tool, as opposed to a dependency
#
GWG
Is the new Post Kinds working for you too?
#
jackjamieson
Tried adding --parents to each line and also creating an empty 'lib/parse-this' directory first, but no luck
#
jackjamieson
For the meanwhile, I can just copy the files manually until I figure it out
#
GWG
Can you try running each copy entry on the command line?
#
GWG
Wonder when -u entered the cp command
#
GWG
Can I ask the OS?
#
jackjamieson
Same error. Mac OS 10.14.5
#
jackjamieson
What does -u do?
#
GWG
Only copy updated files
#
GWG
I checked, Linux has more options in its cp entry
#
GWG
Linux -r is recursive, and MacOS -R
#
jackjamieson
Ah, If I remove -u it at least copies the files in the root directory, but returns an error on /includes
#
GWG
Never occurred to me that MacOS would not have a copy command that matched mine
#
GWG
I will see what I can think up
#
jackjamieson
That looks pretty good, I'll try it out
#
GWG
I use just a basic copy script to extract only the files I need out of the dependencies
#
GWG
So, Post Kinds doesn't bundle Simple Pie
#
GWG
In a future refactor, I might not have it bundle the Parse This RSS and jsonfeed classes
#
GWG
Autoload makes that easier
#
GWG
You just ask if a class exists and it loads it if it can
#
GWG
It's the first PHP 5.3 feature I've really adopted
#
jackjamieson
Autoload seems pretty great - I haven't looked at it closely but I'm happy to have a simpler way to manage dependencies in WordPress
#
GWG
jackjamieson, there is still the issue of load order
#
GWG
But that's why I am going to try to remove the global functions
#
jackjamieson
Yeah, I've been thinking of moving all of Yarns' global functions into classes
#
GWG
Namespaces are an alternative in 5.3 and above
#
jackjamieson
I should really read more about php updates
#
Loqi
yea!
#
jackjamieson
that composer-copy-file seems to have done the trick. Just double-checking now. Then I'm spending some time writing a blog post about how to set up Yarns this afternoon. In the process I should be able to discover if there are any compatibility issue with post kinds
#
GWG
Me too
#
GWG
I am behind on everything post 5.2
[kevinmarks786], [jansauer], jackjami_, ritewhose[m], jackjamieson, [tantek] and [jgmac1106] joined the channel
#
[jgmac1106]
1 billion IPO for a theme builder...Even if you assume automattic takes a 50% haircut on $375 mill they raised still north of unicorn valuation
#
[jgmac1106]
Hard to be Indie in an empire... M
#
[jgmac1106]
Though Automattic remains quite Indie in it's model. So thats cool as well
balupton[m], sander[m]1, [jansauer], [benatwork], [fluffy], [jackjamieson] and jgmac1106 joined the channel