Open Arcesilas opened 6 years ago
What version of Studio are you running? This sounds like what is described in issue #52 and being fixed in #73 PR.
I've updated (composer global update
) and version is 0.12.0...
I have not digged into the dependencies to check why it did not update to 0.13...
I've just figured out that the actual version is indeed 0.13: studio --version
does not give the correct information (version had not been bumped in 0.12).
So it seems I'm actually up-to-date:
composer global info
Changed current directory to /home/olivier/.config/composer
behat/behat v3.4.3 Scenario-oriented BDD framework for PHP 5.3
behat/gherkin v4.5.1 Gherkin DSL parser for PHP 5.3
behat/transliterator v1.2.0 String transliterator
container-interop/container-interop 1.2.0 Promoting the interoperability of container objects (DIC, SL, etc.)
doctrine/instantiator 1.1.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
franzl/studio 0.13.0 Develop your Composer libraries with style
@Arcesilas
composer global require franzl/studio:0.14.x-dev
I have custom packages loading from private packagist.com and when I try to switch it to symlinks it's not working. I've tried
// with "franzl/studio": ">=0.14.0",
// with "minimum-stability": "dev",
// with "prefer-stable": true
composer clearcache && rm -rf vendor && rm -rf composer.lock && composer update
to no avail. It keeps on downloading them instead of symlinking them. The even more perplexing thing is this output at the end of composer install/update:
[Studio] Loading package mystuff/my-utils-9999999-dev
[Studio] Loading package mystuff/mylogger-9999999-dev
[Studio] Loading package mystuff/myresources-dev-develop
[InvalidArgumentException]
Package mystuff/my-utils-9999999-dev seems not been installed properly
After that, all three are there, but from packagist, not symlinked.
@franzliedke I've upgraded Studio to the latest beta and get the same error as @phpguru : Package mystuff/my-utils-9999999-dev seems not been installed properly
.
Any idea how to fix that ?
Same error here with latest beta. Doesn't work with 0.13 nor 0.11-dev neither (symlinking on MacOS, packages versions are used).
@gnutix @mailopl In addition to the commands above also do
rm -rf vendor
I got this tip from packagist.com (enterprise packagist) tech support. In short, composer can learn about packages if they’re already in the vendor folder, so whack it completely. Also, contrary to the docs I don’t think it works with a relative path; use a fully qualified system path in your studio.json.
I switched to developing on Ubuntu, and found the same issues on 0.13.0, so I tried this:
"require-dev" : {
// stuff
"franzl/studio": "0.14.0-beta1",
// stuff
}
and ran rm -rf vendor && rm -rf composer.lock && composer install
and it still isn't working for me; that is, no symlinks are created, even though I am getting plenty of
[Studio] Loading package mystuff/my-utils
[Studio] Loading package mystuff/my-commands
on the cli output from composer install
command.
Does this have to do with using private (enterprise, paid plan) packagist?
I have this in composer.json to handle that:
"repositories": [
{
"type": "composer",
"url": "https://repo.packagist.com/mystuff/"
},
{
"packagist.org": false
}
Hi,
Note: between each try, I've cleared composer cache.
Here's what I have done:
Ran studio load
../dot-array
:In my
composer.json
, I have:Which is ok with the package in
../dot-array
(excerpt):Then, run installing dependencies:
The package is downloaded from packagist, since it's published on it.
Running composer with debug verbose (with relevant information):
If I run the git commands in the
../dot-array
directory:I understand it's not really a Studio problem: Composer does not try to find the tag I require (1.0.0), which yet exists:
If I change my
composer.json
configuration:Then it works:
Is there a bug in Studio that make it no hook where it should? Why is my package symlinked only if I specify a dev version? Btw, the dev version is also available through Composer/Packagist, therefore, I don't understand the difference Composer does between a stable and a dev version...
I've also tried to specify the directory as a path repository in
composer.json
:Also tried with
Symlink is created only when specifying a dev version.
I understand the problem may not be related to Studio (I'm not sure). Is there a way Studio can make Composer actually use the local path and symlink even when we don't specify a dev version?
EDIT: I've opened an issue on Composer