Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NicoletaCroitoru
Copy link

Get full path of files found in rv.stdout

@NicoletaCroitoru NicoletaCroitoru requested a review from a team as a code owner January 20, 2025 16:38
Copy link
Member

@phiwuu phiwuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Please always add an entry to CHANGELOG.md when changing something that affects the behavior of one of the tools.
  2. The integration test for lobster-cpp is failing.

@phiwuu phiwuu added the lobster-cpp Affects C/C++ integration label Jan 20, 2025
@@ -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)
Copy link
Member

@phiwuu phiwuu Jan 20, 2025

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?

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lobster-cpp Affects C/C++ integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants