-
Notifications
You must be signed in to change notification settings - Fork 88
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
remotePathResolve not working for every path #366
Labels
Comments
@der-schick96 Thanks for the ticket and the investigation! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The resolveRemotePaths cannot resolve every path correctly.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The coverage is rendered.
Outcome
The extensions fails to resolve any path, but does not give a warning or error.
I actually found the cause of the bug. The path is resolved with the following function:
In my case, i had a path /app/src/app/my_module.py which should be resolved to src/app/my_module.py.
With remotePathResolve set to ['/app', ''], the '/app' substring is matched two times by .split, causing the
file name resolution to fail.
I could fix the issue by changing the setting to ' ['/app'/src, 'src']', but i had to go through the source code to figure this one out.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: