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

Update Source Path Mapping for case sensitivity. #352

Merged
merged 1 commit into from
May 3, 2022

Conversation

brownts
Copy link
Collaborator

@brownts brownts commented May 3, 2022

Fixes #346.

For SSH path mapping, the unmapped portion of the path will retain its
case, so that mapping to file systems which are case sensitive will work
as expected. Furthermore, additional functionality has been added, such
as proper detection and handling of overlapping paths.

Additionally, the source file mapping and path handling functionality
has been moved to their own files to improve cohesion and better support
unit testing. Unit tests have been added for source file mapping as
well as path functionality.

For SSH path mapping, the unmapped portion of the path will retain its
case, so that mapping to file systems which are case sensitive will work
as expected.  Furthermore, additional functionality has been added, such
as proper detection and handling of overlapping paths.

Additionally, the source file mapping and path handling functionality
has been moved to their own files to improve cohesion and better support
unit testing.  Unit tests have been added for source file mapping as
well as path functionality.
@brownts brownts changed the title Update Source File Mapping for case sensitivity. Update Source Path Mapping for case sensitivity. May 3, 2022
@GitMensch
Copy link
Collaborator

Thanks for taking the time to split that out and adding the unit tests.
Well done.

@GitMensch GitMensch merged commit 781ca3f into WebFreak001:master May 3, 2022
@GitMensch
Copy link
Collaborator

Just wondering: Should Mi2DebugSession.setSourceFileMap (mi2base.ts) moved to SourceFileMap (source_file_map.ts)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.26.0 regression with remote debug: GDB cannot find source files because of lower-casing file paths
2 participants