-
Notifications
You must be signed in to change notification settings - Fork 9
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
Get full path of files found in rv.stdout #180
base: main
Are you sure you want to change the base?
Get full path of files found in rv.stdout #180
Conversation
Signed-off-by: NicoletaCroitoru <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please always add an entry to
CHANGELOG.md
when changing something that affects the behavior of one of the tools. - The integration test for
lobster-cpp
is failing.
@@ -153,6 +153,7 @@ def main(): | |||
match = re.match(RE_NOTAGS, line) | |||
if match: | |||
filename, line_nr, kind, function_name = match.groups() | |||
filename = next((item for item in file_list if filename in item), None) | |||
filename = os.path.relpath(filename, prefix) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line filename = os.path.relpath(filename, prefix)
returns the relative path, but your pull request title indicates to use the full path. What do you intend to achieve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use case: some lines from rv.stdout contains relative path instead of absolute path and because of this filename = os.path.relpath(filename, prefix) will do nothing and a fix to get the absolute path is needed.
Get full path of files found in rv.stdout