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

Add drake::filesystem via new ghc::filesystem dependency #12106

Merged
merged 1 commit into from
Sep 28, 2019

Conversation

jwnimmer-tri
Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri commented Sep 26, 2019

Relates #12104.


This change is Reviewable

@jwnimmer-tri
Copy link
Collaborator Author

@drake-jenkins-bot mac-mojave-clang-bazel-experimental-everything-release please
@drake-jenkins-bot mac-high-sierra-clang-bazel-experimental-release please

@jwnimmer-tri
Copy link
Collaborator Author

jwnimmer-tri commented Sep 27, 2019

@drake-jenkins-bot mac-mojave-clang-bazel-experimental-release please

=> https://drake-jenkins.csail.mit.edu/job/mac-mojave-clang-bazel-experimental-release/20/

@jwnimmer-tri
Copy link
Collaborator Author

Low priority.

+@jamiesnape and @EricCousineau-TRI for feature review, please.
+@sherm1 for platform review per schedule, please.

Copy link
Contributor

@EricCousineau-TRI EricCousineau-TRI left a comment

Choose a reason for hiding this comment

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

+@EricCousineau-TRI
:lgtm:

Reviewed 8 of 13 files at r1, 5 of 5 files at r2.
Reviewable status: 1 unresolved discussion, LGTM missing from assignees jamiesnape,sherm1(platform), labeled "do not merge" (waiting on @jamiesnape, @jwnimmer-tri, and @sherm1)


common/filesystem.h, line 16 at r2 (raw file):

#include <filesystem>
namespace drake { namespace filesystem = std::filesystem; }
#else

nit It's hard to parse this... For readability, could there be some extra newlines sprinkled after / before the #if .. #else #endif?


common/filesystem.h, line 32 at r2 (raw file):

/** Returns true iff the given path is a file. */
DRAKE_DEPRECATED("2019-11-01", "Use drake::filesystem directly.")

BTW I'd be OK if we didn't deprecate this, and just fix forward on Anzu...

Copy link
Contributor

@jamiesnape jamiesnape left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, LGTM missing from assignees jamiesnape,sherm1(platform), labeled "do not merge" (waiting on @jwnimmer-tri and @sherm1)


common/filesystem.h, line 32 at r2 (raw file):

Previously, EricCousineau-TRI (Eric Cousineau) wrote…

BTW I'd be OK if we didn't deprecate this, and just fix forward on Anzu...

Anzu is not the only consumer of Drake (I hope).

Copy link
Collaborator Author

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, LGTM missing from assignees jamiesnape,sherm1(platform), labeled "do not merge" (waiting on @jwnimmer-tri and @sherm1)


common/filesystem.h, line 32 at r2 (raw file):

Previously, jamiesnape (Jamie Snape) wrote…

Anzu is not the only consumer of Drake (I hope).

The key point here is that these methods are in internal namespace, which means they are not for downstream use and not subject to deprecation conventions. However, adding the deprecation was so easy that I opted to do it anyway.

Copy link
Contributor

@jamiesnape jamiesnape left a comment

Choose a reason for hiding this comment

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

Reviewable status: LGTM missing from assignees jamiesnape,sherm1(platform), labeled "do not merge" (waiting on @EricCousineau-TRI and @sherm1)


common/filesystem.h, line 32 at r2 (raw file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

The key point here is that these methods are in internal namespace, which means they are not for downstream use and not subject to deprecation conventions. However, adding the deprecation was so easy that I opted to do it anyway.

OK. I think we should just remove the cruft then.


common/filesystem.cc, line 6 at r2 (raw file):

// Keep this sequence in sync with drake/common/filesystem.h.
#if __has_include(<filesystem>) && !defined(__APPLE__)

BTW Depending on how through you want to be (now), we can narrow this down to macOS version (I can give you the code).

Copy link
Collaborator Author

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Reviewable status: LGTM missing from assignees jamiesnape,sherm1(platform), labeled "do not merge" (waiting on @EricCousineau-TRI and @sherm1)


common/filesystem.h, line 32 at r2 (raw file):

Previously, jamiesnape (Jamie Snape) wrote…

OK. I think we should just remove the cruft then.

Done.


common/filesystem.cc, line 6 at r2 (raw file):

Previously, jamiesnape (Jamie Snape) wrote…

BTW Depending on how through you want to be (now), we can narrow this down to macOS version (I can give you the code).

My plan is to wait until we have CI in place to start to tune that.

Copy link
Contributor

@jamiesnape jamiesnape left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 7 of 13 files at r1, 2 of 5 files at r2, 4 of 4 files at r3.
Reviewable status: LGTM missing from assignee sherm1(platform), labeled "do not merge" (waiting on @sherm1)

Copy link
Member

@sherm1 sherm1 left a comment

Choose a reason for hiding this comment

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

Platform :lgtm:

Reviewed 7 of 13 files at r1, 2 of 5 files at r2, 4 of 4 files at r3.
Reviewable status: labeled "do not merge"

@jwnimmer-tri
Copy link
Collaborator Author

@drake-jenkins-bot mac-mojave-clang-bazel-experimental-release please

@jwnimmer-tri jwnimmer-tri merged commit 799b83d into RobotLocomotion:master Sep 28, 2019
@jwnimmer-tri jwnimmer-tri deleted the filesystem branch September 28, 2019 14:55
@jamiesnape jamiesnape removed their assignment Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants