Comments (4)
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());
from runconfigurationasaction.
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?
from runconfigurationasaction.
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
Steps to reproduce:
- create run configuration with macro of active editor file
- click the icon in the toolbar and everything works fine
- when i now press the keyboard shortcut with your plugin the task run's again
- but when i now change to another file in editor and press the shortcut the old file is used
when I click the icon in the toolbar it runs with the new active file
from runconfigurationasaction.
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$
from runconfigurationasaction.
Related Issues (15)
- Action disappears from menu HOT 4
- AlreadyDisposedException on project close
- Exception in plugin on every project load in CLion HOT 2
- Custom order HOT 3
- Support Compound configuration HOT 2
- The configuration is not triggered by shortcut if it is already assigned to another action HOT 4
- Version 2.1 has broken any Run Configuration as Action functionality HOT 4
- Configurations cannot be run in CLion HOT 7
- I want to know what is run in cmd Main? HOT 1
- Action that builds a specific configuration HOT 1
- Custom toolbar action needs 'Edit icon' again and again to display it's icon properly HOT 5
- Run configurations with underscores character "_" in their names are not shown properly in a "Find Action" list. HOT 2
- cannot find runner HOT 2
- Error when trying to configure Angular project in IntelliJ 2021.1 RC
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runconfigurationasaction.