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

Move gradually to std::filesystem #952

Open
2 of 12 tasks
teusbenschop opened this issue Aug 2, 2024 · 2 comments
Open
2 of 12 tasks

Move gradually to std::filesystem #952

teusbenschop opened this issue Aug 2, 2024 · 2 comments

Comments

@teusbenschop
Copy link
Member

teusbenschop commented Aug 2, 2024

It is now time to use the newer filesystem calls from the std::filesystem library.

To keep testing whether it keeps working after the move.

  • Cloud.
  • Linux tarball.
  • Cloud Ubuntu package.
  • Client Ubuntu package.
  • Debian packages - assumed to be good - not yet tested.
  • Android - 5 out of 6 devices had crashes in C++ - remain with the C API - to be retried later.
  • iOS - It builds with std::filesystem but the app is very slow in the simulator - to be retried later.
  • macOS
  • Windows - may requirer newer Visual Studio
  • If Windows done: Remove thestd::wstring: Nope, this is still needed for other calls.
  • If done: Remove DIRECTORY_SEPARATOR
  • If done: Remove USE_STD_FILESYSTEM
@teusbenschop teusbenschop self-assigned this Aug 10, 2024
teusbenschop added a commit that referenced this issue Aug 10, 2024
teusbenschop added a commit that referenced this issue Aug 15, 2024
teusbenschop added a commit to bibledit/android that referenced this issue Aug 17, 2024
This uses the std::filesystem now.
bibledit/cloud#952
@teusbenschop
Copy link
Member Author

When enabling std::filesystem on Android, several devices had native crashes. This are crashes in C++.

Device(s) with issues
Google Pixel 6 (oriole) - Android 12
Google Pixel 5 64-bit only (redfin_64) - Android 13
Google Pixel 7 (panther) - Android 13
Motorola Motorola G20 (java) - Android 11
Generic Small Desktop (x86) (SmallDesktop.x86) - Android 12L

Exceptions
Native crash of org.bibledit.android
Native crash of org.bibledit.android
Native crash of org.bibledit.android
Native crash of org.bibledit.android
Native crash of org.bibledit.android
Native crash of org.bibledit.android

teusbenschop added a commit to bibledit/android that referenced this issue Aug 18, 2024
teusbenschop added a commit to bibledit/android that referenced this issue Aug 18, 2024
teusbenschop added a commit to bibledit/android that referenced this issue Aug 18, 2024
teusbenschop added a commit to bibledit/packaging that referenced this issue Aug 18, 2024
teusbenschop added a commit to bibledit/ios that referenced this issue Aug 18, 2024
teusbenschop added a commit that referenced this issue Aug 20, 2024
teusbenschop added a commit that referenced this issue Aug 20, 2024
teusbenschop added a commit to bibledit/windows that referenced this issue Aug 24, 2024
bibledit/cloud#952

This still has std::filesystem disabled for Windows.
teusbenschop added a commit to bibledit/windows that referenced this issue Aug 24, 2024
teusbenschop added a commit that referenced this issue Aug 24, 2024
teusbenschop added a commit to bibledit/windows that referenced this issue Aug 24, 2024
bibledit/cloud#952

Updated to enable std::filesystem in Windows.
teusbenschop added a commit that referenced this issue Aug 25, 2024
teusbenschop added a commit that referenced this issue Aug 25, 2024
teusbenschop added a commit that referenced this issue Aug 25, 2024
teusbenschop added a commit to bibledit/macos that referenced this issue Aug 25, 2024
@teusbenschop
Copy link
Member Author

For Ubuntu 22.04 see this issue: #960 That is why the std::filesystem is disabled for all of Cloud and Linux client, just to be sure.

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

No branches or pull requests

1 participant