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

erro slidy 4.0.4 durante start #285

Open
lucribas opened this issue Apr 7, 2023 · 1 comment
Open

erro slidy 4.0.4 durante start #285

lucribas opened this issue Apr 7, 2023 · 1 comment

Comments

@lucribas
Copy link

lucribas commented Apr 7, 2023

Com slidy 4.0.4
Flutter version 3.7.10 on channel stable
Dart version 2.19.6

Ao executar o start em uma pasta vazia:

slidy start

Obtemos o seguinte erro:

SUCCESS: main created
SUCCESS: app_module created
SUCCESS: app_widget created
Unhandled exception:
Invalid path: (dependencies). Failed to traverse to subpath (dependencies)! Parent null does not contain key or index dependencies.
#0      YamlEditor._pathErrorOrElse (package:slidy/src/core/services/yaml_edit/src/editor.dart:517:25)
#1      YamlEditor._traverse (package:slidy/src/core/services/yaml_edit/src/editor.dart:504:16)
#2      YamlEditor.update (package:slidy/src/core/services/yaml_edit/src/editor.dart:265:24)
#3      YamlServiceImpl.update (package:slidy/src/core/services/yaml_service_impl.dart:46:16)
#4      PackageRepositoryImpl.putPackage.<anonymous closure> (package:slidy/src/modules/package_manager/infra/repositories/package_repository.dart:38:17)
#5      TaskEither.run (package:fpdart/src/task_either.dart:148:37)
#6      TaskEither.flatMap.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:fpdart/src/task_either.dart:39:27)
#7      Right.match (package:fpdart/src/either.dart:353:14)
#8      TaskEither.flatMap.<anonymous closure>.<anonymous closure> (package:fpdart/src/task_either.dart:37:38)
<asynchronous suspension>
#9      StartCommand.run (package:slidy/src/modules/template_generator/presentation/start_command.dart:130:14)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#11     main (file:///home/lus/.pub-cache/git/slidy-ae7f385464de9695c60b3b7d565959b91bf33348/bin/main.dart:18:7)
<asynchronous suspension>

Parece que ele tenta abrir o yaml na sessão dependencies e ocorre o erro.

O workaround que achei foi rodar o start com o pubspec.yaml já criado:

flutter create <project_name>
cd project_name
slidy start
flutter pub get
flutter pub add build_runner
flutter pub run build_runner build --delete-conflicting-outputs
flutter run

ainda precisei remover o modular_test: ^3.0.1 que ainda nao foi publicado no pub.dev

apenas o mobx funcionou
o triple reclama de falta da classe NotifierStore

lib/app/modules/home/home_store.dart:3:25: Error: Type 'NotifierStore' not found.
class HomeStore extends NotifierStore<Exception, int> {
@vonmecheln
Copy link

Resolvido com a PR #286

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