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

Issue generating Appwrite database models using flutter extension #89

Open
2 tasks done
juma-sayeh opened this issue Aug 8, 2023 · 1 comment
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@juma-sayeh
Copy link

juma-sayeh commented Aug 8, 2023

👟 Reproduction steps

Using flutter extension from feat-flutter branch
when i use the cli command
appwrite flutter generate

👍 Expected behavior

generate model files with no errors

👎 Actual Behavior

When i use the cli command
appwrite flutter generate

i get the following error:

no such file or directory, open '/usr/local/lib/node_modules/appwrite-cli/lib/commands/../../flutter_res/template_model.dart'

i tried

appwrite flutter generate --vebose and i got the following logs:

Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/appwrite-cli/lib/commands/../../flutter_res/template_model.dart' at Object.openSync (node:fs:601:3) at Object.readFileSync (node:fs:469:35) at generate (/usr/local/lib/node_modules/appwrite-cli/lib/commands/flutter.js:69:31) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { errno: -2, syscall: 'open', code: 'ENOENT', path: '/usr/local/lib/node_modules/appwrite-cli/lib/commands/../../flutter_res/template_model.dart' }

after further investigation it seems like the file exists in /generator/template_dart.dart and it does work when the path points to it in /usr/local/lib/node_modules/appwrite-cli/lib/commands/flutter.js:69:31

🎲 Appwrite version

Version 1.3.x

💻 Operating system

MacOS

🧱 Your Environment

AWS EC2 amazon linux 2023

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@juma-sayeh juma-sayeh added the bug Something isn't working label Aug 8, 2023
@joeyouss joeyouss self-assigned this Aug 16, 2023
@lohanidamodar
Copy link
Member

Hey, we are working on generator for multiple language support so, instead of using appwrite flutter generate please use appwrite generate dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants