bug: `flet build` fails on rebuild
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- flutter, python
- Ambito
- build-system, mobile
Direzione di ricerca
Start by tracing how flet build prepares and cleans build/flutter-packages and how the generated Flutter project records extension package paths; the issue names no source files or tests. Reproduce by building an Android project with the listed extensions twice without changing dependencies, then inspect the second build's Flutter dependency resolution. Done when the second build succeeds with the extensions installed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
After a successful flet build apk, running flet build again (without changing
dependencies) can fail during "Running build hooks" because the generated Flutter
project still depends on an extension package from build\flutter-packages\, but that
folder no longer exists at that point.
Error:
Running build hooks...Because *** depends on flet_onesignal from path which
doesn't exist (could not find package flet_onesignal at
"D:\***\***\build\flutter-packages\flet_onesignal"), version solving failed.
The folder build\flutter-packages does not exist on disk after the failure.
The extension's Python package (flet-onesignal) is installed and was bundled
successfully in the earlier build.
Code sample
Code
Running build hooks...Because *** depends on flet_onesignal from path which
doesn't exist (could not find package flet_onesignal at
"D:\***\***\build\flutter-packages\flet_onesignal"), version solving failed.
To reproduce
- Project using Flet 1.0.5 with the extensions
flet-map,flet-geolocatorand
flet-onesignal, built for Android. - Run
flet build apk— it succeeds. - Without changing
pyproject.toml, runflet buildfor Android again. - The build stops at the Flutter dependency resolution step with the error above.
- Deleting the whole
buildfolder before the next run avoids the error [confirm].
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
11
Flet version
1.0.5
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
- Lingua principale
- Python
- Stelle
- 17.4k
- Fork
- 737
- Merge medio
- 1g 8h
- PR unite (30g)
- 46
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di flet-dev/flet
-
feature: python 3.15 supportApertafeature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
flet-dev/flet#6985 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug: `use_state` with a callable initializer is inferred ambiguously by ty and mypyForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
flet build: common [tool.flet.deep_linking] is ignored on Android and iOSForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug packaging platform: mobile
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug: [packaging] editing requirements.txt does not trigger pip reinstall (stale hash), produces APK with missing/empty site-packagesForse già presa @ndonkoHenri l’ha presa 4 giorni fa. Apertabug
flet-dev/flet#6994 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di flet-dev/flet
Issue simili
-
backlog
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
EchoTools/nevr-runtime#1108 ·
I maintainer di solito rispondono entro 1 giorno
-
parse names a key after a top-level multi() threshold Bitcoin Core v31.1 refuses as not validAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
btclib-org/btclib-wallet#587 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Judgment-Pack/judgment-pack-spec#275 ·
I maintainer di solito rispondono entro 1 giorno