Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

add new method getUnresolvedPath, update getPath to call realpath - #182

Closed
dirk-thomas wants to merge 1 commit into
atom:masterfrom
dirk-thomas:get_unresolved_path
Closed

dirk-thomas wants to merge 1 commit into
atom:masterfrom
dirk-thomas:get_unresolved_path

Conversation

@dirk-thomas

Copy link
Copy Markdown
Contributor

This patch is related to atom/atom#10856 which aims to allow passing non-realpath through the API (from TextBuffer to Project).

The new method getUnresolvedPath returns the unmodified path of the file. The existing getPath is 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).

@dirk-thomas

Copy link
Copy Markdown
Contributor Author

Could the failing AppVeyor build be unrelated to this patch?

@dirk-thomas

Copy link
Copy Markdown
Contributor Author

@maxbrunsfeld Is there anything I can do regarding the failing AppVeyor?

@dirk-thomas

Copy link
Copy Markdown
Contributor Author

Anyone?

@winstliu

winstliu commented Dec 5, 2016

Copy link
Copy Markdown
Contributor

Try merging from master.

@dirk-thomas

Copy link
Copy Markdown
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.

@dirk-thomas

Copy link
Copy Markdown
Contributor Author

@maxbrunsfeld Can I please get feedback on this patch.

@maxbrunsfeld

Copy link
Copy Markdown
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.

@dirk-thomas
dirk-thomas deleted the get_unresolved_path branch January 5, 2017 00:56
@dirk-thomas

Copy link
Copy Markdown
Contributor Author

The goal is reached 👍 So all good 😉 Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants