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

Error running dynamite generator #2204

Closed
samolego opened this issue Jun 25, 2024 · 8 comments
Closed

Error running dynamite generator #2204

samolego opened this issue Jun 25, 2024 · 8 comments

Comments

@samolego
Copy link

(follow-up from #2202)
When I run

./tool/generate-nextcloud.sh

++ dirname ./tool/generate-nextcloud.sh
+ cd ./tool/..
+ cd packages/nextcloud
+ rm -rf .dart_tool/build/generated/dynamite
+ fvm dart run generate_props.dart
   Woah! You appear to be trying to run flutter as root.
   We strongly recommend running the flutter tool without superuser privileges.
  /
📎
Error: Couldn't resolve the package 'dynamite' in 'package:dynamite/src/helpers/dart_helpers.dart'.
generate_props.dart:3:8: Error: Not found: 'package:dynamite/src/helpers/dart_helpers.dart'
import 'package:dynamite/src/helpers/dart_helpers.dart';
       ^
generate_props.dart:86:24: Error: Method not found: 'toDartName'.
      final variable = toDartName('$namespacePrefix-$name');

I get the above error ... Any ideas what I'm doing wrong?

@provokateurin
Copy link
Member

Did you run the ./tool/setup.sh script? It seems like the local dependency was not resolved.

@samolego
Copy link
Author

Sorry! I haven't, will do.

@provokateurin
Copy link
Member

Did it work now?

@samolego
Copy link
Author

Yes, was able to run it. But found out that my openapi.yaml is incorrect :(

@provokateurin
Copy link
Member

Good, let me know if you need further help. You can also hop onto our Matrix channels if you find that easier.

@samolego
Copy link
Author

samolego commented Jun 28, 2024

Sorry for silly question, but where are the matrix channels? I can't seem to find any links on github nor on official nc page 😅.

@provokateurin
Copy link
Member

It's linked in the main readme: https://matrix.to/#/#nextcloud-neon:matrix.org

@samolego
Copy link
Author

Ah, was looking at the org. Thanks!

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

2 participants