Closed mvenghaus closed 3 years ago
I've never used macros in Run Configurations. Can you please explain in more details,what configuration you have,what do you want to achieve, and what IntelliJ do if you run it directly?
I am using PHPStorm not IntelliJ. I want to have a keyboard shortcut for phpcbf (PHP Code Beautifier Fixer). The only other way I found is through External Tools. But External Tools are global and I have different configurations for different projects.
So the command is "vendor/bin/phpcbf --standard=PSR12 $FilePathRelativeToProjectRoot$"
Steps to reproduce:
I am currently affected by the same problem. The use case for me is to run a project-specific linter on the current file, which works as a run configuration, but does not work when run via this plugin.
Basically, it is running a python script with arguments --config-file setup.cfg $FilePath$
I think it is easy to fix by adding the DataContext
argument to ExecutionUtil.runConfiguration
here:
My guess for how this would look is:
ExecutionUtil.doRunConfiguration(runConfig, executor, target, null, e.getDataContext());
Hey,
really nice plugin!
But one litte thing. I've created a run configration with the following argument: --standard=PSR12 $FilePathRelativeToProjectRoot$
The keyboard shortcut works but then the macro/variable has always the value from the last run triggered outside your plugin.
Would be nice if you can fix this.
Regards Marcus