[ https://issues.apache.org/jira/browse/NETBEANS-3796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17031816#comment-17031816 ]
R commented on NETBEANS-3796: ----------------------------- # On Windows 10, with NetBeans 11.2 running, use Git Bash to run `vagrant ssh` into Homestead box. # Run a composer command like `composer require "spatie/laravel-mailcoach:^1.5.0"` # See results like the error below. # Close NetBeans. # Try the composer command again, and it works. {code:java} vagrant@vboxHomestead:~/Code/myproject$ composer require "spatie/laravel-mailcoach:^1.5.0" 1/2: http://repo.packagist.org/p/provider-2020-01$1629049c6cee0bff0df029089bcd84cf0b0feeea02cbc960e69475df9ed3f8db.json 2/2: http://repo.packagist.org/p/provider-latest$0f5e6508b900cbebec774060bae842912c8cba8e190c8f25eb774ed1ac226a4b.json Finished: success: 2, skipped: 0, failure: 0, total: 2 ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Finished: success: 0, skipped: 0, failure: 1, total: 1 Package operations: 0 installs, 1 update, 0 removals - Updating spatie/laravel-mailcoach (1.5.1 => 1.6.1): Downloading (100%) Update failed (Could not delete /home/vagrant/Code/myproject/vendor/composer/8849acd3/resources: ) Would you like to try reinstalling the package instead [yes]? - Removing spatie/laravel-mailcoach (1.5.1) - Installing spatie/laravel-mailcoach (1.6.1): Loading from cache Failed to download spatie/laravel-mailcoach from dist: Could not delete /home/vagrant/Code/myproject/vendor/composer/bd0dcacd/resources/dist: Now trying to download from source - Installing spatie/laravel-mailcoach (1.6.1): Enter passphrase for key '/home/vagrant/.ssh/id_rsa': Cloning c0af6f13da Enter passphrase for key '/home/vagrant/.ssh/id_rsa':Installation failed, reverting ./composer.json to its original content. [RuntimeException] Failed to execute git clone --no-checkout 'https://***:***@github.com/spatie/laravel-mailcoach.git' '/home/vagrant/Code/myproject/vendor/spatie/laravel-mailcoach' && cd '/home/vagrant/Code/myproject/vendor/spatie/laravel-mailcoach' && git remote add co mposer 'https://***:***@github.com/spatie/laravel-mailcoach.git' && git fetch composer && git remote set-url origin 'https://github.com/spatie/laravel-mailcoach.git' && git remote set-url composer 'https://github.com/spatie/laravel-mailcoach.git' Cloning into '/home/vagrant/Code/myproject/vendor/spatie/laravel-mailcoach'... remote: Repository not found. fatal:***@github.com/spatie/laravel-mailcoach.git/' not found {code} > Prevents composer from working > ------------------------------ > > Key: NETBEANS-3796 > URL: https://issues.apache.org/jira/browse/NETBEANS-3796 > Project: NetBeans > Issue Type: Bug > Components: php - Composer > Affects Versions: 11.2 > Reporter: R > Priority: Major > > Now that I've upgraded from NetBeans 8.2 to 11.2, I'm no longer able to run > `composer update` or `composer require` (if NetBeans 11.2 is running); I get > random errors like "Update failed (Could not delete..." > My guess is that NetBeans 11.2 must be interfering with files in my > `/home/vagrant/Code/myproject/vendor/` folder more than 8.2 did (even when > there is no message about background scanning). > Once I close NetBeans 11.2, composer works again. > My computer is Windows 10, and I'm also running VirtualBox 6.1.2r135662 > [Vagrant 2.2.7, laravel/homestead (virtualbox, 9.2.0), Ubuntu 18.04.3 LTS]. > I use Git Bash on my Windows machine to ssh into Ubuntu using `vagrant ssh`, > and there I'm using Composer version 1.9.3. > Everything had worked fine with NetBeans 8.2, but I needed to upgrade to 11.2 > for PHP 7.4 support. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists