barryvdh / laravel-ide-helper

IDE Helper for Laravel
MIT License
14.23k stars 1.16k forks source link

PHPStorm - can't install from Manage Composer Dependencies #752

Closed ejblom closed 5 years ago

ejblom commented 5 years ago

Dear developers,

After some years of working with Sublime I've purchased IntelliJ Ultimate. I installed PHP for Windows, set the ini file, installed some plugins (Laravel/PHP) in IntelliJ and imported my Laravel 5.4 with Spark integration.

Via Tools/Composer/Manage Dependencies I tried to installed the barryvdh/laravel-ide-helper but I can't get it installed:

 Failed to install barryvdh/laravel-ide-helper

The show output tells me:

 [InvalidArgumentException]
 Could not find package barryvdh/laravel-ide-helper in a version matchin 2.6-dev
 require - lots of options

I tried several versions although i was just recently told I should use 2.x since the higher versions are for Laravel 5.5. Is there something I didn't set properly in IntelliJ?

barryvdh commented 5 years ago

Can you install it with the command line? Composer require barryvdh/laravel-ide-helper:2.x

ejblom commented 5 years ago

I installed it on my linux machine which I used for developing:

./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 11 installs, 0 updates, 0 removals

It has then installed 2.5.3. I commited and pushed the changes and pulled them into my windows machine. Next, I tried installing it:

Failed to update barryvdh/laravel-ide-helper Scripts was cancelled The dompdf v0.8.2 required ext-gd so I activated that by uncommenting extension=gd2 from php.ini It was then complaining about curl, fileinfo, soap,

After that I looked like a regular composer install but it did fail after

Writing lcok file Generating optimized autoload files

[RuntimeException] Could not scan for classes inside "database/factories" which does not appear to be a file nor a folder

So I created the database/factories folder (it indeed was not there)

Redid composer thing and it seems to work !!! (ofcourse after an IDE restart!)

Thanks!