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

C#: Try resolve relative paths in line mappings #15542

Merged
merged 1 commit into from Feb 9, 2024

Conversation

tamasvajk
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the C# label Feb 7, 2024
Comment on lines +79 to +82
catch (Exception e)
{
logger.LogDebug($"Failed to compute absolute path for relative path in line mapping: '{mappedToPath}': {e}");
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.
@tamasvajk tamasvajk changed the title C#: Try resolve relative paths in #line directives C#: Try resolve relative paths in line mappings Feb 8, 2024
@tamasvajk tamasvajk marked this pull request as ready for review February 8, 2024 15:05
@tamasvajk tamasvajk requested a review from a team as a code owner February 8, 2024 15:05
@tamasvajk
Copy link
Contributor Author

DCA looks good. There are new successfully extracted cshtml files in dotnet/aspnetcore. The paths seem to match files in the repo. There are also some ...Designer.cs files in the repo, which contain #line pragmas with relative paths. These explain the new results found in dotnet/aspnetcore.

@michaelnebel michaelnebel self-requested a review February 8, 2024 18:04
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

This looks plausible to me!
How did this come up?

@tamasvajk
Copy link
Contributor Author

How did this come up?

There's a linked internal issue, which has some details, and links to further customer issues. WPF uses relative paths in #line directives, which caused extraction errors.

@tamasvajk tamasvajk merged commit d46028f into github:main Feb 9, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants