franzliedke / studio

A workbench for developing Composer packages.
MIT License
1.14k stars 73 forks source link

Unload does not work #99

Closed benjivm closed 4 years ago

benjivm commented 4 years ago

Composer version: 1.9.1 PHP version: 7.4 OS: Windows 10

I have been working on my package I want to now unload it to switch to the main repo.

$ studio unload ~/path/to/proj

[OK] Packages matching the path /path/to/proj will no longer be loaded by Composer.

$ composer update
[Studio] Loading path: /path/to/proj
Loading composer repositories with package information
Updating dependencies (including require-dev)
benjivm commented 4 years ago

Fixed it, the paths have to be identical (was actually adding a trailing /).

It would be helpful if studio would throw an error if a matching path wasn't found in the links it is monitoring.

rask commented 4 years ago

Looks like some path normalization should be in place. So the problem exactly is that unload does not remove the entry from studio.json properly?