idea-php-symfony2-plugin icon indicating copy to clipboard operation
idea-php-symfony2-plugin copied to clipboard

Feature request: Run/Debug Commands

Open Richard87 opened this issue 5 years ago • 9 comments

Hi!

Thanks for an awesome plugin! It really saves me a lot of time every single day!

I would love a little green play button in the margin of commands, next to execute or the class...

Would that be easy to add / quick fix? maybe I could help?

Richard87 avatar Sep 24 '20 08:09 Richard87

@Haehnchen Is any chance to have Run/Debug for Commands (same as for PHPUnit tests) in near future?

SergeC avatar Dec 10 '21 22:12 SergeC

I wonder if it will be way easier to make now if its based on the newish #[AsCommand("app:command:name") attribute!

Richard87 avatar Dec 10 '21 22:12 Richard87

@Haehnchen While it is awesome we can run commands straight from phpstorm, it's not ideal the way it is implemented right now. We work with docker containers and currently there is no way to configure the plugin to run the command inside a container, so for us the feature is not really useful at the moment.

However, it is in the way of easily clicking through to the configuration of the command. As you can see, the linemarker now replaces the cog for configuration. Screenshot 2022-05-12 at 10 28 04 Screenshot 2022-05-12 at 10 28 15

Can we perhaps move it to to the $defaulName-line so we can support both?

ChristianVermeulen avatar May 12 '22 08:05 ChristianVermeulen

My bad, turns out this specific command was not yet configured 🙈.

Screenshot 2022-05-12 at 10 44 42 tenor-47887959

ChristianVermeulen avatar May 12 '22 08:05 ChristianVermeulen

Awesome! Thanks @Haehnchen !

Is it possible to also look for the Attribute #[AsCommand('app:test')] instead of $defaultName?

Richard87 avatar May 12 '22 10:05 Richard87

Skjermbilde 2022-05-12 kl  12 05 06 Skjermbilde 2022-05-12 kl  12 09 36

I see you have added a codeblock for it (https://github.com/Haehnchen/idea-php-symfony2-plugin/pull/1920/files#diff-bd1d67aad9012c45bcb6b02f252d9f007cf79ae6b13cf0f5bbbb643df1b41569R73) but it doesnt seem to work...

I'm running Symfony plugin 2022.1.225, and PHPStorm 2022.1 :)

Thanks for the amazing work, and is there anything I can do to help?

Richard87 avatar May 12 '22 10:05 Richard87

thank you for this hint. i was thinking that the named arguments automatically were resolved by PhpAttribute, but its likely not the case. name: 'app:test:test' should work.

i will fix this in the next release.

Haehnchen avatar May 12 '22 18:05 Haehnchen

@ChristianVermeulen yes, i was playing also with remote interpreter support like docker, but then stripped the first iteration, as this needed some improvements first, but will be added.

Haehnchen avatar May 12 '22 18:05 Haehnchen

Yup, can confirm: name: 'app:test:test' works great! :)

Richard87 avatar May 13 '22 13:05 Richard87