Comments (7)
It seems to be a known issue on Windows:
- https://issuetracker.google.com/issues/194301881
- https://issuetracker.google.com/issues/194208090
- https://issuetracker.google.com/issues/203087070
- android/codelab-android-datastore#48
from nowinandroid.
androidx.datastore:datastore-*:1.1.0-beta02
landed:
Fixed the issue where file rename fails during updateData in non-Android JVM environments. (b/203087070)
https://developer.android.com/jetpack/androidx/releases/datastore#1.1.0-beta02
Unfortunately, the issue persists...
from nowinandroid.
I think the reason should be that two DataStore's writing at the same time, one of the renames seems to be failing, because the file no longer exists.
I think the place where the problem occurs should be in the TestDataStoreModule.kt
file, We should instead create the DataStore once, then inject the instance where necessary or manage it as a singleton.
from nowinandroid.
Hi, is this still an issue with the latest version?
from nowinandroid.
FWIW, on a Windows machine, I'm unable to run the whole test suite. Many unit tests fail while SingleProcessDataStore
tries to write the new data as shown above.
from nowinandroid.
Hello @SimonMarquis I am also experiencing this java.io.IOException: Unable to rename C:\Users\User\AppData\Local\Temp\junit481202955115791832\user_preferences_test.pb.tmp.This likely means that there are multiple instances of DataStore for this file. Ensure that you are only creating a single instance of datastore for this file.
Is there a way to make this work on my Windows 10?
from nowinandroid.
No, but you can ⭐ & +1 this issue: https://issuetracker.google.com/issues/203087070
from nowinandroid.
Related Issues (20)
- [Testing FR] [feature:bookmarks] Add screenshot tests
- [Testing FR] [feature:bookmarks] Improve coverage of viewmodel
- [Testing FR] [feature:interests] Add screenshot tests
- [Testing FR] [feature:search] Add screenshot tests
- [Testing FR] [feature:settings] Add screenshot tests
- [Testing FR] [feature:settings] Improve ViewModel coverage
- [Testing FR] [feature:topic] Add screenshot tests
- [Testing FR] [sync:work] Improve test coverage of module
- [Testing FR] [feature:interests] Add large screen tests for 2-pane support
- [Bug]: why WithPartialCompilationAndDisabledBaselineProfile is the best result in StartupBenchmark HOT 2
- [Testing FR] [core:database] Room migration tests
- [FR]: Minimize Unnecessary Recompositions HOT 1
- [Bug]: enableEdgeToEdge() doesn't change the navigation bar color when the app is in the dark mode and the system is not in Android 14 HOT 1
- [CI] Code coverage report not shown when PR is generated from fork
- [Bug]: Current project is not applied ```android_studio``` style ktlint
- [Bug]: Bottom Bar Item is not highlighted in search
- Rename `Result` to `TaskState`
- [Bug]: App crash while scrolling the Interest category list HOT 1
- Navigation from Search to Interests HOT 1
- Wrong Search History State HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nowinandroid.