Comments (7)
@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.
@ptrthomas, there seems to be, and it worked great!!!
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.
@arnaldop great !
from intellij-plugin.
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:
- As mentioned above, if the working directory is not provided, it should assume the working directory of the Karate module.
- 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.
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.
@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.
thanks @arnaldop opened #51 to track this for the new plugin
from intellij-plugin.
Related Issues (20)
- Feature Request: Option to add commas at the end of lists HOT 7
- Bug: Structure not complete HOT 3
- New run config should take working dir and default to module wd HOT 1
- Jump to test failure HOT 9
- Endless Formatting Bug HOT 7
- Formatter flattens JavaScript HOT 6
- Warnings due to missing semi-colon HOT 5
- JavaScript invalid warning HOT 1
- Cmd+Click to Source
- Ternary assignment erratic warning HOT 1
- Error messages HOT 5
- 'match header' formatting breaks HOT 1
- Karate.env overwrite Tags propterty HOT 2
- Incorrect warning/error message HOT 2
- Environment variables field missing with latest plugin HOT 5
- Code reformatting does not reformat Examples and JSON request data tables HOT 1
- Cannot set breakpoints for features in jars HOT 1
- Formatting is inconsistent HOT 3
- Failed to Perform Operation Cannot perform operation. Too complex, sorry. HOT 2
- Unable to run/debug code for karate 1.2.0
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 intellij-plugin.