-
-
Notifications
You must be signed in to change notification settings - Fork 161
Handle errors #148
Comments
|
Any idea why I got this error... As mentionned in #147 I deleted cache file but I'm still getting stuck during installation. |
Possibly the download failed. Have you tried running YeoPress with the |
@Toddses The output is the same with |
Try throwing some logging right here, |
@wesleytodd Sorry for the late answer, I was focused on an other project. I modified index.js as you advised :
It returns :
So it's somehow link to the FJCore library... Any ideas? |
@jacquesletesson I have the same problem! Where did you put the console.error rows? After remote.directory? As: this.logger.log('Installing WordPress ' + this.conf.get('wpVer'));
this.remote('wordpress', 'wordpress', this.conf.get('wpVer'), function(err, remote)
remote.directory('.', this.conf.get('wpDir'));
console.error("Error(s) : " + err);
console.error("Remote : " + remote);
this.logger.log(this.conf.get('wpDir'));
this.logger.log('WordPress installed');
done();
}.bind(this)); |
@jacquesletesson WOW....lol. So are you guys on windows? |
@wesleytodd Not at all. OSX 10.10.2 – Yosemite. |
@wesleytodd No, I'm on Mac OSX 10.10.3 – Yosemite. |
Oh, well then it is weird that the directory separator is a |
@dnzmsc Put it just before the line : |
@wesleytodd I can't see this error as I wrote to @jacquesletesson |
Not sure why I closed that....oops. |
The odd thing is that I cannot find |
A quick video demo : http://quick.as/Z1OntY8qV @wesleytodd The fact that remote is undefined is linked to a failed download? |
@jacquesletesson where did you find that? I am pretty sure that yeoman uses the github clone, so that is what I was searching. Can you try changing your log to |
@wesleytodd With the trace :
|
Maybe it should have been |
@wesleytodd Weirdly when I launch the generator with Wordpress installed as a submodule, the error occurs but all the files are downloaded and I can use the install. |
With git there is a different install path. So I am actually surprised the error occurs at all. This is going to be a harder one to track down. If you want to really dig in then I would be happy to merge a PR, but otherwise I will not be able to look at it until this weekend. |
@wesleytodd I made everything as @jacquesletesson but the only message I get is
|
The name is wp-scaffold but it is the same generator |
@wesleytodd @dnzmsc It drives me crazy so I want to understand why I got these errors... Let's assume the FJCore is somehow linked to my configuration... Why does the generator returns a value of undefined for this.remote? Any way, I will keep digging into this issue. |
@jacquesletesson Please tell me if you solve! |
@dnzmsc Does it work without issue while using GIT and Wordpress as a sub module? |
@jacquesletesson I didn't try, but I need not to use it in this way |
@jacquesletesson Can you do me a favor, take a look at the yeoman-generator package manifest and let me know what version you have installed? |
@Toddses It's |
Thanks. Okay here is what I'm finding. I know I'm probably basically talking to myself, but sometimes it helps to write things down and work it out that way. I get this error 100% of the time when using yeoman-generator 0.18.10, which is the last 0.18 release. But yeoman-generator is on 0.19.1 right now. So I updated that module, and now I don't get the error. But there's a catch, yeoman-generator no longer extracts the archive. So you end up with a tarball in the cache, and the 4.1.1 wordpress tarball in the directory you ran YeoPress. And that's not really useful. So at the moment I'm hunting down what may have changed in the If I can't work anything out here in the next couple hours, we could force YeoPress to install yeoman-generator 0.18.7, thinking that would at least get YeoPress working while we figure out the issue and get yeoman-generator updated to 0.19.1. |
That's sick. I didn't get that far... I should have though about updating yeoman-generator. |
Here is the relevant issue: yeoman/generator#794 |
Welp using yeoman-generator 0.18.7 doesn't do the trick. You're back to square one. I'm guessing one of the plugins it uses was updated, which broke the |
@jacquesletesson Can you take a look at your node version?
|
I believe I've worked out a potential solution. But since YeoPress is so tied into the framework of the yeoman-generator, we may not be able to produce a new release until they get their fix in and released. Looks to me like it has to do with the latest version of node and how readable streams are handled. Possibly it changed in the 0.12 release. A quick fix is to make a change in
to
and that should get things working for you. It did for me at least. |
Keep an eye on that PR. When they either pull that in or create a different fix, we can go ahead and bump to the latest version of yeoman-generator and do a new release. |
Ok my fix was merged into the master a few minutes ago: yeoman/generator#796. @wesleytodd do you want to wait until yeoman-generator issues a new release before we try and get YeoPress updated? |
We can probably get an alpha release with the fix by directly referencing the repo. I can do this tonight when I get home form work. But we wont do an actual release until they get their version stabilized. |
Perfect. |
Posted that. Looks like the tarball being copied over is solved by clearing cache after upgrading. But that means this would be backward incompatible. Im working on updating develop right now and will push it soon. |
0.19.2 just released for yeoman-generator! |
Give it a test. If you are happy we can close these out and release. Also, I don't know if you saw this, but I posted an issue that might cause problems: yeoman/generator#800 (comment) It works once you clear cache, but it looks backwards incompatible, so I dont know what they are going to want to do. |
I've been keeping my eye on that one, too. Seeing how it plays out. I'll test the update here in a few. |
The update looks good to me. 👍 |
Closing but not releasing. #152 is a serious blocker. |
I (on Mac Yosemite) got this error when I have underscores in my file/repo directory name e.g. |
Open up a new issue for that. |
See: #147
There are a bunch of places we can add useful error messages.
The text was updated successfully, but these errors were encountered: