-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Errors when using cli to create new app #811
Comments
It seems like it's failing at Can you run |
Yes, no problem when running direct. I also tried using elevated privileges, but same error.
|
Curiosity got the better of me and I cloned the code and ran locally. I don't see how my system is setup any differently from instructions, but adding '.bat' to the
I then tried using the shell to host the process and that worked too. So I'm guessing something about paths internal to my Dart setup?
Great job on the CLI, love this setup! |
@ratsey thank you! Thank you! Thank you! That is very interesting. I wonder how we can solve that. Are you a windows user? Maybe we can build in a fallback to try |
I'm using Windows 11. I'll have another look at the failing code today . I'm not sure about falling back to '.bat' since the run process function is just looking for an executable, not necessarily a bat file. I do think that we should wrap the routine with a T/C in case it should fail for any reason at all - just so the user doesn't have to do too much cleanup. Is there any reason that we shouldn't run the process with |
I thought perhaps it was a path environment difference when not running I think my recommendation would be to just elect to |
@ratsey I don't know the difference so it was never a consideration. How would that fare for Mac and Linux users? |
It seems like runInShell might work? Did you try it on your side? |
Yes, as commented above, I don't know how it would fare for other OSs - I'm only setup for Windows right now but given it's a core Dart function, I'd be surprised if it had any negative impact to what we're doing here. |
@ratsey thanks. We just got another which is a little different, but the I'll keep this open and see what's up. I'll have to get Windows running again so that I can debug on my side. I appreciate your effort in trying to help me resolve it. |
Hello, in my case, I get the following error: Unhandled exception: Unhandled exception: I am missing some configuration? |
@Almircar I think it might be the same - I get that same HOME message when I run my local copy, but then it runs fine., so I think safe to ignore that. The issue you have is the same as me, I think, that it's trying to run the flutter command as a process but failing. If you clone this repo, these are the steps to apply my 'fix': Update the
Then run this statement to build a local version that will replace any preexisting global installs. Make sure you're in the packages\stacked_cli folder when you run the command:
Then try running the |
@ratsey, thank you very much, I made the change you suggested and it worked. |
@FilledStacks I updated, did a test and it is working fine. Congratulations, it is an excellent tool. |
@FilledStacks Ran the update, built and tested a new app - no issues. 👍 |
@ratsey thank you! honestly. I really appreciate constructive, and feedback that helps me make something better. I really appreciate you using stacked! even if it's once off. It helps me build something good. And thank you @Almircar as well for your report. It helps show the urgency to me and the Stacked team. |
Getting errors trying to create a stacked app from the cli. I have Dart and Flutter SDKs installed and available in the path. Creating a Flutter app with
flutter create my_app
works successfully.Package stacked_cli is currently active at version 1.1.0.
The text was updated successfully, but these errors were encountered: