Flutterando / slidy

CLI package manager and template for Flutter
https://pub.dev/packages/slidy
Apache License 2.0
803 stars 101 forks source link

Slidy generate module fails with "file x_module exists" #241

Closed raff-run closed 3 years ago

raff-run commented 3 years ago

Whenever I try to generate a module, slidy works until the first file is created (x_module.dart), then fails saying the file it just created already exists. I'm trying to migrate my existing project to this new structure, so this is how it looks before I try anything: image And this is what happens when I try to generate a module:

>slidy generate module prototype SUCCESS: prototype_module created ERROR: File prototype_module exists

After the error, the following file is present: image

This happens regardless of which name/path I use. I tried downgrading to 2.2.1, but it also happens on that version.

These were my installation steps:

  1. I added D:\flutter\bin\cache\dart-sdk\bin to PATH so I could use the "pub" command
  2. Ran pub global activate slidy, it warned me that %localappdata%\Pub\Cache\bin wasn't in path
  3. Added that to PATH because pub global activate installed slidy there
  4. Ran slidy generate module prototype

I'm on Windows 10.

raff-run commented 3 years ago

Hard to tell since I'm new to this, but it seems that it is working correctly (by that I mean it generates the files correctly), the only problem here seems to be that it always runs twice.

rodrigofelipejr commented 3 years ago

When you run the slidy --version command, are you also displaying this? @raff-run

Screenshot_1

raff-run commented 3 years ago

Just tested it and yes, it prints twice.

jacobaraujo7 commented 3 years ago

Fixed!