jedi Is siliconvalley
the extension folder? IE, is there a composer.json
folder directly inside there?
If so, try changing the "url" to "C:/wamp64/www/bek/packages/*"
jedi Is siliconvalley
the extension folder? IE, is there a composer.json
folder directly inside there?
If so, try changing the "url" to "C:/wamp64/www/bek/packages/*"
I try all way but not worked. Error is the same still
askvortsov Is siliconvalley the extension folder?
Yes.
askvortsov IE, is there a composer.json folder directly inside there?
I think siliconvalley
folder is corect.
I setup it's Flarum Extension-Generator again but it's still the same error contuine.
I have never used absolute paths for Composer repositories.
You could try with a relative path.
Also Windows uses backslash \
, maybe Composer is sensitive to that? The opposite could also be true, some tools use only forward slashes for paths even on Windows.
Also maybe there's a protocol required for when using absolute path, for example file://
. Did you find a documentation that explains how to use absolute paths in the Composer documentation? I think all examples I've seen until now use relative paths.
"Oh s**t! Clark is here.."
I use this documentation and I follow your live flarum coding videos for extend flarum. (Very usefull)
(Nice to meet you Clark, you are definitely a Super Hero for Flarum Community , (Sure not like Batman but cool )
Problem is just "repositories"
, right?
I now trying this code but is the same error
"repositories": [
{
"type": "path",
"url": "C:\wamp64\www\bek\packages\batman",
"options": {
"versions": {
"batman": "4.2-dev"
}
}
}
]
jedi well the keys and values look correct according to https://getcomposer.org/doc/05-repositories.md#path
The only thing I cannot find documentation for is the use of an absolute path. Every example and issue I find when searching for this are relative paths.
I don't have access to a Windows computer so I cannot test if that syntax works for me
Is Flarum inside C:\wamp64\www\bek
? If so you could try to just use packages/*
as the url
, as suggested in https://docs.flarum.org/extend/start.html#extension-packaging
I've never used the options
key, I don't think it's necessary.
Now I get this error
The
urlsupplied for the path (packages/*) repository does not exist
clarkwinkelmann Is Flarum inside C:\wamp64\www\bek ?
Yes
jedi Theurlsupplied for the path (packages/*) repository does not exist
This problem is was solved with "repositories"
is here: https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path
But then here we back again same error
jedi Are you using a relative path now?
askvortsov I using now this code:
"repositories": [
{
"type": "path",
"url": "packages/*"
}
]
What's the output of composer why-not superman/flarum-ext-batman
..Says, "I not find"
but how? I see name in the composer.json
file
[InvalidArgumentException]
Could not find package "superman/flarum-ext-batman" in your project
jedi Are you on discord? It might be faster to do a quick call with screenshare and get this figured out.
My username is askvortsov#3485
{
"name": "superman/flarum-ext-batman",
"description": "Being Hero",
"keywords": [
"flarum"
askvortsov I'm Sorry, I don't use Discord. But thank a lot being helpfull me.
I setup it's Flarum Extension-Generator again.
Repositories is:
"repositories": [
{
"type": "path",
"url": "packages/batman"
}
]
askvortsov What's the output of composer why-not superman/flarum-ext-batman
And now says, "There is no installed package depending on "superman/flarum-ext-batman"