-
Notifications
You must be signed in to change notification settings - Fork 268
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
Local Environment: Failure to start in Gutenberg directory #405
Comments
Couple of funky things here:
|
Apparently wp-env supports all of these variations: Maybe we need to remove support for Alternatively, we could transform 'WordPress/WordPress' to a WordPress nightly ZIP. But this seems a little hacky. Previously #230 |
See #405 ## What? Calls `getWpNowConfig()` on a `yargs.check()` callback to validate the entire configuration before `start` or `php` commands are run. ## Why? `getWpNowConfig()` can pick up additional values from `.wp-env.json`. We want to make sure the validation of those values is caught by `yargs`. ## How? The `yargs.check()` callback runs `getWpNowConfig()` and listens for an exception. I don't love that we're calling `getWpNowConfig()` twice because it seems like some side effect could occur. However, this seems like the most appropriate way to incorporate a check into `yargs`. ## Testing Instructions 1. Run `nx preview wp-now start --wp=invalid` and verify an error message appears as expected. 2. Clone Gutenberg somewhere: `[email protected]:WordPress/gutenberg.git` 3. Run `nx preview wp-now start --path=/path/to/gutenberg-clone` and verify an error message appears as expected. 4. Run `nx preview wp-now start` for a happy path and verify `wp-now` starts as expected.
We chatted about this a bit on our team call today. Our preference at this point is to remove |
What if we change |
@wojtekn I'd like to remove it to start, and leave "official support for a |
Fixes #405 ## What? Removes support for `.wp-env.json` and `.wp-env.override.json`. ## Why? Our support for the 'core' argument is woefully incomplete (#405 (comment)). Rather than try to sort through all of those permutations right now, it's easier to just remove support. ## How? Removes a bunch of code. ## Testing Instructions 1. Tests should pass. 2. Run `git clone [email protected]:WordPress/gutenberg.git` and `nx preview wp-now start --path=/path/to/gutenberg-clone` and verify `wp-now` starts as expected.
See WordPress/wordpress-playground#405 ## What? Calls `getWpNowConfig()` on a `yargs.check()` callback to validate the entire configuration before `start` or `php` commands are run. ## Why? `getWpNowConfig()` can pick up additional values from `.wp-env.json`. We want to make sure the validation of those values is caught by `yargs`. ## How? The `yargs.check()` callback runs `getWpNowConfig()` and listens for an exception. I don't love that we're calling `getWpNowConfig()` twice because it seems like some side effect could occur. However, this seems like the most appropriate way to incorporate a check into `yargs`. ## Testing Instructions 1. Run `nx preview wp-now start --wp=invalid` and verify an error message appears as expected. 2. Clone Gutenberg somewhere: `[email protected]:WordPress/gutenberg.git` 3. Run `nx preview wp-now start --path=/path/to/gutenberg-clone` and verify an error message appears as expected. 4. Run `nx preview wp-now start` for a happy path and verify `wp-now` starts as expected.
Fixes WordPress/wordpress-playground#405 ## What? Removes support for `.wp-env.json` and `.wp-env.override.json`. ## Why? Our support for the 'core' argument is woefully incomplete (WordPress/wordpress-playground#405 (comment)). Rather than try to sort through all of those permutations right now, it's easier to just remove support. ## How? Removes a bunch of code. ## Testing Instructions 1. Tests should pass. 2. Run `git clone [email protected]:WordPress/gutenberg.git` and `nx preview wp-now start --path=/path/to/gutenberg-clone` and verify `wp-now` starts as expected.
Description
This is the error I'm getting. I'm not sure how to act on it:
Proposed solution
Run with --wp 6.2
.cc @sejas @danielbachhuber @wojtekn
The text was updated successfully, but these errors were encountered: