-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to reuse step implementations from another project #359
Comments
Are you sure you didn't just typo things? Your tree structure shows Other than that, I have a feeling that might not work, and you might want to instead try to organise your projects and config differently to avoid paths like that, and be able to run from the root as working directly with different other config. On Linux/Mac you could probably just symlink, but not going to send you down the path of junction points on Windows.... |
Hello @chadlwilson, Apologies for the typo in the tree structure (will update it). Its actually correctly mentioned in the config as Thanks.😄 |
I'm not an expert with python or the python plugin, but from the errors it looks like it is translaring the impl dirs to packages directly, so suspect only regular forward paths will work. |
I just tried to test it quickly, and It's working as expected on macOS. Unfortunately I don't have access to windows device ATM, so can't say if it's windows specific issue |
Hello @BugDiver, The path format that worked for you on macOS, was it an absolute path or relative path in the |
Did the relative or absolute case work for you? I wonder if it makes any difference as to direction of slashes :-) The code on the python side is: gauge-python/getgauge/impl_loader.py Lines 52 to 66 in 410a097
Didn't look to me like it'd work in either case unless the base path is the root (not the subproject) |
Forget what I said earlier, I'm able to see the error on macOS as well. I will try to look into the issue |
Description:
I have 2 Gauge projects -
Gauge-Project-Main
andGauge-Project-Sub
. I want to use the step implementations created withinGauge-Project-Main
insideGauge-Project-Sub
. To do so, I have tried updating theGauge-Project-Sub
'senv/default/python.properties
file with both absolute and relative paths toGauge-Project-Main
'sstep_impl
folder but I keep getting different errors in both scenarios:Adding relative path to python.properties file:
STEP_IMPL_DIR = step_impl, ../Gauge-Main-Project/step_impl
Adding absolute path to python.properties file:
STEP_IMPL_DIR = step_impl, <ABSOLUTE_PATH_TO_PROJECT>/Gauge-Main-Project/step_impl
To Reproduce
Steps (or project) to reproduce the behavior:
gauge init python
commandVersions:
Windows 10 (10.0.19045)
3.11.4
1.6.7
Project Structure:
Thanks 😄
The text was updated successfully, but these errors were encountered: