Giter Club home page Giter Club logo

Comments (7)

ptrthomas avatar ptrthomas commented on June 2, 2024

@arnaldop we are investigating this, the implementation within karate is blindly using ./target or ./build depending on whether gradle was detected in the invoking cli command.

I wonder if there is a setting to change the "working directory" in an intellij run-configuration

from intellij-plugin.

arnaldop avatar arnaldop commented on June 2, 2024

@ptrthomas, there seems to be, and it worked great!!!

image

I also added it to the Karate Feature configuration template, so that new Karate Features should benefit from this automatically. But it would be nice if $MODULE_WORKING_DIR$ was the default if the Working Directory field is empty.

from intellij-plugin.

ptrthomas avatar ptrthomas commented on June 2, 2024

@arnaldop great !

from intellij-plugin.

arnaldop avatar arnaldop commented on June 2, 2024

I don't believe this ticket should be closed.
The plugin should have a deterministic behavior for its default.
What I mentioned above is a workaround.
Possible solutions:

  1. As mentioned above, if the working directory is not provided, it should assume the working directory of the Karate module.
  2. Configure the plugin so that the default template settings include $MODULE_WORKING_DIR$ for the working directory.
    Either way, the current behavior is non-intuitive, non-deterministic, and hard to explain/define.
    Thanks.

from intellij-plugin.

jansorg avatar jansorg commented on June 2, 2024

Sorry, the reason for closing it wasn‘t clear. This is fixed for the next update by defaulting to the module working dir for newly created run configurations. There‘s no change of behavior for existing run configurations, so far.

from intellij-plugin.

arnaldop avatar arnaldop commented on June 2, 2024

@ptrthomas, this came back up as a problem again. Same exact behavior. The only issue is that the updated plugin does not have a way to define the Working Directory...

This failed: -Duser.dir=$MODULE_WORKING_DIR$
This hung on the write: -Duser.dir=/Users/arnaldopiccinelli/dev/projectDir/testing

from intellij-plugin.

ptrthomas avatar ptrthomas commented on June 2, 2024

thanks @arnaldop opened #51 to track this for the new plugin

from intellij-plugin.

Related Issues (20)

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.