JeroenDeDauw / ParamProcessor

Declarative parameter processing library
https://entropywins.wtf
Other
20 stars 4 forks source link

Having trouble installing #39

Open humenspider7 opened 5 years ago

humenspider7 commented 5 years ago

Hello, I'm new to this composer installer, so forgive me if I'm forgetting anything. I put the ParamProcessor folder in my Media Wiki extensions folder, and I edited my composer.json to look like this.
param

I added the require for param processor, copied from the page and for the life of me, I cannot get Mediawiki to recognize it. Not many tutorials around, so I had no idea where else to ask. Thanks.

mwjames commented 5 years ago

Hello, I'm new to this composer installer, so forgive me if I'm forgetting anything. I put the ParamProcessor folder in my Media Wiki extensions

I'm not sure what you are trying to do here but ParamProcessor is a utility extension used by other extensions to add some specific functionality. You should not add ParamProcessor directly to the MediaWiki composer.json unless you know what you are doing.

folder, and I edited my composer.json to look like this.

Also, copying files and modifying the composer.json afterwards isn't going to work because Composer needs to update its registration which is why you add a package to composer.json and later run the command composer update or composer install.

life of me, I cannot get Mediawiki to recognize it. Not many tutorials around, so I had no idea where else to ask. Thanks.

Because extensions that rely on Composer have normally clear instructions [0] on how to go about it and as I said before, ParamProcessor is a utility extension that doesn't do anything on its own.

[0] https://www.mediawiki.org/wiki/Category:Extensions_supporting_Composer

On 4/28/19, humenspider7 notifications@github.com wrote:

Hello, I'm new to this composer installer, so forgive me if I'm forgetting anything. I put the ParamProcessor folder in my Media Wiki extensions folder, and I edited my composer.json to look like this. param

I added the require for param processor, copied from the page and for the life of me, I cannot get Mediawiki to recognize it. Not many tutorials around, so I had no idea where else to ask. Thanks.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/JeroenDeDauw/ParamProcessor/issues/39

humenspider7 commented 5 years ago

Thank you for responding. So would I be installing into the extension itself instead of Mediawiki? new

That would be the Sidebar extension I am trying to install. https://www.mediawiki.org/wiki/Extension:SideBarMenu

Would placing the information in the composer.json of that extension work instead?

JeroenDeDauw commented 5 years ago

Thanks @mwjames for providing some input here already!

@humenspider7 ParamProcessor is a library used by some MediaWiki extensions. On its own it does not add any functionality. Adding it to an extension that does not use it won't give you any benefit. ParamProcessor is used by extensions such as Maps, SubPageList and SMW, though you don't need to know this or care about it, since if you install any of those extensions, ParamProcessor will be automatically installed as well.

Edit: James is right, this is a bug in SideBarMenu

mwjames commented 5 years ago

That would be the Sidebar extension I am trying to install. https://www.mediawiki.org/wiki/Extension:SideBarMenu

So yes, Extension:SideBarMenu defines a dependency on [0] (param-processor/param-processor: 1.2.2) with a fixed 1.2.2 version.

In case the fixed 1.2.2 version causes some issues then the extension maintainer of Extension:SideBarMenu has to update the extension and its composer.json to declare a newer version as dependency.

[0] https://packagist.org/packages/mediawiki/side-bar-menu

On 4/28/19, humenspider7 notifications@github.com wrote:

Thank you for responding. So would I be installing into the extension itself instead of Mediawiki? new

That would be the Sidebar extension I am trying to install. https://www.mediawiki.org/wiki/Extension:SideBarMenu

Would placing the information in the composer.json of that extension work instead?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/JeroenDeDauw/ParamProcessor/issues/39#issuecomment-487306997

JeroenDeDauw commented 5 years ago

@netbrain please beware that this is broken: https://github.com/wikimedia/mediawiki-extensions-SideBarMenu/blob/master/composer.json#L10

Would submit a PR if this was on GH but dealing with gerrit is too much of a pain.

netbrain commented 5 years ago

Im no longer maintaining any of my mediawiki contributions.