Skip to content
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

[ReactNative|Easy] Change watchman too-long error message #825

Closed
wants to merge 1 commit into from

Conversation

pcottle
Copy link
Contributor

@pcottle pcottle commented Apr 13, 2015

@wez Mentioned this in Issue #239 -- right now when watchman takes too long we recommend you run watchman from your terminal which actually expects some arguments, so it prints out the following:

[pcottle:~/Desktop/react-native:changeErrorMessage]$ watchman 
{
    "error": "invalid command (expected an array with some elements!)",
    "cli_validated": true,
    "version": "3.0.0"
}

basically this ends up being more confusing since the command we recommend you run errors out, so lets change it to watchman version which at least exists cleanly.

I kept the troubleshooting link as https://facebook.github.io/watchman/docs/troubleshooting.html since it sounds like we will update that with the issue people run into in #239

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 13, 2015
@pcottle
Copy link
Contributor Author

pcottle commented Apr 13, 2015

hrm @amasad maybe this isnt needed anymore? saw your comment in #239

@amasad
Copy link
Contributor

amasad commented Apr 16, 2015

It is. Will pull shortly

@sahrens sahrens closed this in 691297a Apr 24, 2015
@pcottle pcottle deleted the changeErrorMessage branch July 4, 2015 17:38
cpojer pushed a commit to facebook/metro that referenced this pull request Jan 26, 2017
Summary:
@wez Mentioned this in Issue #239 -- right now when watchman takes too long we recommend you run `watchman` from your terminal which actually expects some arguments, so it prints out the following:

```
[pcottle:~/Desktop/react-native:changeErrorMessage]$ watchman
{
    "error": "invalid command (expected an array with some elements!)",
    "cli_validated": true,
    "version": "3.0.0"
}
```

basically this ends up being more confusing since the command we recommend you run errors out, so lets change it to `watchman version` which at least exists cleanly.

I kept the troubleshooting link as https://facebook.github.io/watchman/docs/troubleshooting.html since it sounds like we will update that with the issue people run into in #239
Closes facebook/react-native#825
Github Author: Peter Cottle <pcottle@fb.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
facebook-github-bot pushed a commit that referenced this pull request Oct 12, 2018
Summary:
`YGRoundValueToPixelGrid` currently rounds negative numbers incorrectly. For example:

```
YGRoundValueToPixelGrid(-2.2, 1.0, /* ceil */ false, /* floor */ true) = -2.0
```

However, that operation is supposed to take the floor of the number so the result should acutally be `-3.0`.

There's a detailed comment in `YGRoundValueToPixelGrid` about the fix and why it works.

A symptom that manifested because of this bug is that text nodes could get smaller and smaller on each layout pass. For details see facebook/yoga#824.

Fixes #824

Adam Comella
Microsoft Corp.
Pull Request resolved: facebook/yoga#825

Reviewed By: priteshrnandgaonkar

Differential Revision: D10282064

Pulled By: shergin

fbshipit-source-id: 16ca966e6cb0cfc88b1dbf4ba31e7b1dbe1f2049
t-nanava referenced this pull request in microsoft/react-native-macos Jun 17, 2019
Summary:
`YGRoundValueToPixelGrid` currently rounds negative numbers incorrectly. For example:

```
YGRoundValueToPixelGrid(-2.2, 1.0, /* ceil */ false, /* floor */ true) = -2.0
```

However, that operation is supposed to take the floor of the number so the result should acutally be `-3.0`.

There's a detailed comment in `YGRoundValueToPixelGrid` about the fix and why it works.

A symptom that manifested because of this bug is that text nodes could get smaller and smaller on each layout pass. For details see facebook/yoga#824.

Fixes #824

Adam Comella
Microsoft Corp.
Pull Request resolved: facebook/yoga#825

Reviewed By: priteshrnandgaonkar

Differential Revision: D10282064

Pulled By: shergin

fbshipit-source-id: 16ca966e6cb0cfc88b1dbf4ba31e7b1dbe1f2049
ayushjainrksh referenced this pull request in MLH-Fellowship/react-native Jul 2, 2020
On my machine with Manjaro Linux 18.0.3 bash profile doesn't work, but .bashrc works.
Bash version: 5.0.0(1) release
uname:
Linux marat-pc 4.19.23-1-MANJARO
acoates-ms pushed a commit to acoates-ms/react-native that referenced this pull request Sep 28, 2021
…-2020-07-31

Merge from upstream through 2020-07-31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants