This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
add new method getUnresolvedPath, update getPath to call realpath - #182
Closed
dirk-thomas wants to merge 1 commit into
Closed
dirk-thomas wants to merge 1 commit into
dirk-thomas wants to merge 1 commit into
Conversation
Contributor
Author
|
Could the failing AppVeyor build be unrelated to this patch? |
Contributor
Author
|
@maxbrunsfeld Is there anything I can do regarding the failing AppVeyor? |
Contributor
Author
|
Anyone? |
Contributor
|
Try merging from master. |
Contributor
Author
|
Thank you for the hint that the problem has been fixed on master in the meantime. I have rebased the patch and it passed now. |
Contributor
Author
|
@maxbrunsfeld Can I please get feedback on this patch. |
Contributor
|
This was finally addressed in atom/atom#13545. Thanks for your persistence @dirk-thomas, and sorry we initially gave you the wrong feedback. Back then, we were just more scared of this type of change. |
Contributor
Author
|
The goal is reached 👍 So all good 😉 Thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch is related to atom/atom#10856 which aims to allow passing non-realpath through the API (from
TextBuffertoProject).The new method
getUnresolvedPathreturns the unmodified path of the file. The existinggetPathis being modified to continue returning a realpath even if the text buffer was constructed with a non-realpath. This way existing users of the API won't notice the change and can opt-in to the new method.I haven't added a specific spec since I notices the one spec which was already working around the realpath problem by effectively ignoring the difference. I changed that spec to use the new API which should hopefully make it continue to pass (while actually checking the file path for equality).