Code Monkey home page Code Monkey logo

Comments (4)

skogler avatar skogler commented on May 23, 2024 1

I think it is easy to fix by adding the DataContext argument to ExecutionUtil.runConfiguration here:

ExecutionUtil.runConfiguration(runConfig, executor, target);

My guess for how this would look is:

        ExecutionUtil.doRunConfiguration(runConfig, executor, target, null, e.getDataContext());

from runconfigurationasaction.

turbanoff avatar turbanoff commented on May 23, 2024

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.

mvenghaus avatar mvenghaus commented on May 23, 2024

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:

  1. create run configuration with macro of active editor file
  2. click the icon in the toolbar and everything works fine
  3. when i now press the keyboard shortcut with your plugin the task run's again
  4. 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.

skogler avatar skogler commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.