medz / prisma-dart

Prisma Client Dart is an auto-generated type-safe ORM. It uses Prisma Engine as the data access layer and is as consistent as possible with the Prisma Client JS/TS APIs.
https://prisma.pub
BSD 3-Clause "New" or "Revised" License
459 stars 31 forks source link

Flutter integration cannot compile Android App in Windows #395

Closed kidusdev closed 5 months ago

kidusdev commented 5 months ago

FAILURE: Build failed with an exception.

medz commented 5 months ago

@kidusdev Fixed, see https://prisma.pub/getting-started/flutter.html#faq

Please install:

kidusdev commented 5 months ago

@medz the previous error was resolved #395 but when i test orm: ^5.0.1 and orm_flutter: ^0.1.1 i encountered a new issue here is the stack trace

BUILD FAILED in 2m 26s Error: Gradle task assembleDebug failed with exit code 1

medz commented 5 months ago

@kidusdev Run commands:

flutter clean
flutter pub get
dart run orm_flutter:dl_engine
medz commented 5 months ago

https://prisma.pub/getting-started/flutter.html#not-fond-query-engine-libquery-engine-a-file

kidusdev commented 5 months ago

yeah i am trying to run dart run orm_flutter:dl_engine but it throws this error

Building package executable... 
Built orm_flutter:dl_engine.
Unhandled exception:
PathNotFoundException: Cannot open file, path = 'C:\Users\XXXX\AppData\Local\Pub\Cache\hosted\pub.dev\orm_flutter-0.1.1\.version\prisma-engines' (OS Error: The system cannot find the path specified.
, errno = 3)
#0      _File.throwIfError (dart:io/file_impl.dart:675:7)
#1      _File.openSync (dart:io/file_impl.dart:490:5)
#2      _File.readAsBytesSync (dart:io/file_impl.dart:574:18)
#3      _File.readAsStringSync (dart:io/file_impl.dart:624:18)
#4      _File.readAsLinesSync (dart:io/file_impl.dart:630:36)
#5      main (file:///C:/Users/XXXX/AppData/Local/Pub/Cache/hosted/pub.dev/orm_flutter-0.1.1/bin/dl_engine.dart:29:8)
<asynchronous suspension>

updated

medz commented 5 months ago

@kidusdev 我正在调查这个问题。

kidusdev commented 5 months ago

@kidusdev 我正在调查这个问题。

Tell me how can i help?

medz commented 5 months ago

@kidusdev I don't have a Windows machine, and the fix is ​​all intuitive. I don't know if Windows has a Linux/macOS equivalent of unzip/cp/tar commands, and if the parameters are different. It would be great if you could confirm this for me.

medz commented 5 months ago

@kidusdev Fixed in orm:5.0.2 and orm_flutter:0.1.2 version

What's Changed

Full Changelog: https://github.com/medz/prisma-dart/compare/orm-v5.0.2+orm_flutter-v0.1.2...orm-v5.0.2+orm_flutter-v0.1.2

medz commented 5 months ago

I will not close this issue for now. I need to wait for your feedback. I will close it after you confirm that there are no problems.

kidusdev commented 5 months ago

I will not close this issue for now. I need to wait for your feedback. I will close it after you confirm that there are no problems

My app runs smoothly on the newer versions orm:^5.0.2 & orm_flutter: ^0.1.2 ... appreciate the fast response 👌 👍