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

When debugging the app using Android Studio temporary folder is not erased properly #47

Open
ismael-benito opened this issue Dec 17, 2023 · 0 comments

Comments

@ismael-benito
Copy link

Hi there,

when trying to run a minimal example (counter) with the following environment:

Debian GNU/Linux 12 (bookworm)
Android Studio Hedgehog | 2023.1.1
Flutter 3.16.4

I constantly have to manually remove the temporal folder created for the python code in both the Linux and Android environments, this error arises:

Debug service listening on ws://127.0.0.1:45185/uwcCXYfS2XI=/ws
Syncing files to device Linux...
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FileSystemException: Deletion failed, path = '/tmp/example-1.0.0-1/.' (OS Error: Argumento inválido, errno = 22)
#0      _checkForErrorResponse (dart:io/common.dart:55:9)
#1      _Directory._delete.<anonymous closure> (dart:io/directory_impl.dart:185:7)
<asynchronous suspension>
#2      extractAssetOrFile (package:serious_python_platform_interface/src/utils.dart:29:7)
<asynchronous suspension>
#3      SeriousPython.run (package:serious_python/serious_python.dart:45:17)
<asynchronous suspension>

In the case of Android, the rm command can be a little bit tricky:

adb exec-out run-as com.youcompany.example rmdir /data/user/0/com.yourcompany.example/app_flutter/example-1.0.0-1/

After removing the folder, and hot loading it again, it works.

Am I missing something?

Cheers,

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

No branches or pull requests

1 participant