-
Notifications
You must be signed in to change notification settings - Fork 655
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
project structure of ionic start
projects has changed in bad way
#45
Comments
What version of Ionic-cli are you using? This does sound like something is wrong, but not sure how to replicate it. With the latest ionic-cli, v1.1.0, let's say my working directory is Also, the ionic.project file is used to keep track of the Ionic App Id which we could use to uniquely identify an app for our Ionic services, such as the package service. Thanks |
@ibes I think what you found here is a symptom of a different problem. We use So, a few questions:
|
So things are collected in ionic-app-base-master and will then be moved in the project folder? Something like this? My answers:
any logs or stuff I could check? I have been able to reproduce this in different folders, with different base themes and different project names. |
I try to understand the start.js Maybe it helps you to know, that the quickTip does not show up. And - as can be seen in the image above - I required the 'tabs' starter, but got the 'base' starter (see the directory name; and the files are the files of the base starter) |
I guess the config.xml is also not updated. maybe some trouble with |
Hmm. What shell are you using? Sent from my iPhone
|
zsh and around this
I will try the same thing from bash |
bash returns the same results What else could I check, update, install, zip, unzip it... |
@ibes, are you prepared to dig deeper? :) If so, I'd love to have you check out the repo and try it locally, and then set breakpoints or console log debugging to see what's going on in start.js. Once you check it out, cd into What seems to be happening is this Maybe add some console logs or debugger breakpoints into https://github.com/driftyco/ionic-cli/blob/master/lib/ionic/start.js#L89? |
:) I have already tried a few things. After spending another half hour with my console and sweet sublime (instead of sleeping) I figured out, that this promise won't be resolved. https://github.com/driftyco/ionic-cli/blob/master/lib/ionic.js#L400 That's the reason, that the copy stuff won't be triggered in the start.js The code around But also doesn't seem to be rejected. Any idea for further digging? == In short words what I have tried == But in a ton of "console.logs" with names "before xy", "in function xy". |
If it's not resolving or not rejecting, I suspect node is just flat out Now to figure out why... Could just be unzip is a bad module... On Sat, Jul 19, 2014 at 8:11 PM, ibes notifications@github.com wrote:
Max Lynch |
Some more research: I am quite sure, that there is a problem with the "close" event, that should be triggered by unzip. Seems like other people had/have some trouble too: EvanOxfeld/node-unzip#21 So might be a problem with unzip and my setup. Any ideas? I could try another unzip package. I don't have a clue about streams - maybe there is a way to trigger a custom event or trigger the 'close'-event manually?! |
You know, I had a hell of a time finding a good unzip package, so I'm not On Sat, Jul 19, 2014 at 8:17 PM, ibes notifications@github.com wrote:
Max Lynch |
Hm - seems like the same problem #23 I tried to be bleeding edge with node.js to be able to use koa.js with --harmony to get generator-magic. I guess that's the difference because I have been running the CLI successfully some weeks ago and the code is 'old' (nothing, that has changed in the last weeks). So I guess my node.js is just to new for unzip. Don't know if that's a good reason to change the unzip package (but maybe a version of 0.19 and a maintainer who is quite uncertain about how to maintain the package is a good reason; see: EvanOxfeld/node-unzip#50) So my next try for tomorrow: back to stable on node.js... |
Ok, the biggest culprit was this line with the unknown The promise now resolves like it should and the quick help shows up again. I also added in another @ibes would you be able to test out v1.1.1-beta1? Thanks |
@adamdbradley that might fix the output, but I want to make sure we look Notice how his output completely ends, but running ionic start right now That make sense? On Sat, Jul 19, 2014 at 9:41 PM, Adam Bradley notifications@github.com
Max Lynch |
So yes it can be narrowed down to the repo being downloaded and when it gets unzipped. But the unzip writeStream did not have an onerror listener, nor did writing and closing the zip's file stream, and rarely was an error rejecting the promise. The updates may not fix the issue, but hopefully it helps debug what's going on. I just published beta2 |
@adamdbradley no sorry - beta1 and beta2 leed to the same output without the quickHelp (I have checked Yeah - as I thought the problem for me is, that the script won't ever reach the position to trigger the cordova plugin installation (and the xml configuration) as both are in the then() of the promise that's not resolved for me. As far as I understand unzip uses stream functionality and streams seem to have error, finish etc. handlers by definition (they are supposed to have them?!). |
also tried it with beta3 But for
|
I downgraded my node to 0.10.28 Now it works like expected. I guess it is not necessary to have ionic work in node versions that are newer than stable... |
Hello, As I am working on #42 I have went through the portion of code that is responsible for this in detail. I think instead of trying to pin down this problem, it is the good time to just move on and use nodegit instead of dealing with the zip file and temporary folders, it will also makes it possible to pull a specific release (or commit) of a template which will be very handy once 3rd party templates grow. I would like to hear some feedback on #42 and also switching to nodegit instead of downloading the zip. |
I think this is brilliant (var this = the idea and the concept; haven't really digged into your code) Being able to have custom templates would open up a lot more possibilities. |
Sounds really interesting. We are also going to be adding the ability to On Sun, Jul 20, 2014 at 10:08 AM, ibes notifications@github.com wrote:
Max Lynch |
Looks nice. |
Looks neat. |
Going to close this and will open it back up if the stable version has issues. We did add more error handling and a few features, so this was a good update. |
if am writing on command prompt npm start myApp sidemenu this command is throwing a module.js:328 Error: Cannot find module 'C:\Users\harish\AppData\Roaming\npm\node_modules\ionic\bin\ionic' |
am using node --version v5.4.0,please solve this . |
Maybe you haven't install the dependicies of ionic. Your question is most likely not related to this ticket so this is not the right place to ask. |
ok thanks for reply dude. |
Hi,
seems like there have been some changes how projects are initialized.
Why this https://github.com/driftyco/ionic-cli/blob/master/lib/ionic/start.js#L168?
I really don't care what name the boilerplate had, I used.
Why force me to have such ugly folder names like
ionic-app-base-master
- just call it "app" or something.But where does the "ionic.project" file comes from? What is it for?
Why not put it beside the rest of the app?
Seems ugly this way and forces me to make another
cd ugly-folder-name
to be able to do somegulp
,ionic
etc stuff.This also crashs your documentation as it needs the info to have another
cd
.Seems like a mistake and doesn't seems like fun.
The text was updated successfully, but these errors were encountered: