Skip to content

Possible bug, reporting unsupported watchman version #1694

Closed

Description

@SpaghettiC0des

Environment

System:
    OS: macOS 12.5.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 109.59 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.1 - /var/folders/xd/h0fnv84s2vd9sfn4m8ghvmx40000gn/T/yarn--1662089107237-0.34428322345352735/node
    Yarn: 1.22.19 - /var/folders/xd/h0fnv84s2vd9sfn4m8ghvmx40000gn/T/yarn--1662089107237-0.34428322345352735/yarn
    npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
    Watchman: 2022.08.29.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 26, 30, 31, 32
      Build Tools: 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0
      System Images: android-32 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.68.2 => 0.68.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
✨  Done in 2.59s.

Description

When I run, npx react-native doctor it's giving me an error that my current version 2022.08.29.00 is unsupported, even though that is the latest release 4 days ago.

Reproducible Demo

  1. Install watchman using brew
  2. After installation, npx react-native doctor inside a react-native project.
✓ Node.js
 ✓ yarn
 ✖ Watchman - Used for watching changes in the filesystem when in development mode
   - Version found: 2022.08.29.00
   - Version supported: 4.x

Android
 ✓ JDK
 ✓ Android Studio - Required for building and installing your app on Android
 ✓ Android SDK - Required for building and installing your app on Android
 ✓ ANDROID_HOME

iOS
 ✓ Xcode - Required for building and installing your app on iOS
 ✓ CocoaPods - Required for installing iOS dependencies
 ✓ ios-deploy - Required for installing your app on a physical device with the CLI

Errors:   1
Warnings: 0

Usage
 › Press f to try to fix issues.
 › Press e to try to fix errors.
 › Press w to try to fix warnings.
 › Press Enter to exit.

Activity

  1. adamTrz commented on Sep 2, 2022

    @adamTrz
    Collaborator

    Hi @karlmarxlopez
    Unfortunately I cannot reproduce this issue :|
    Just upgraded watchman to latest and run doctor in fresh project and all seems fine.

    ❯ watchman --version
    2022.08.29.00
     
    ❯ npx react-native doctor                     
    Common
     ✓ Node.js
     ✓ yarn
     ✓ Watchman - Used for watching changes in the filesystem when in development mode
    
    Android
     ✓ JDK
     ✓ Android Studio - Required for building and installing your app on Android
     ✓ Android SDK - Required for building and installing your app on Android
     ✓ ANDROID_HOME
    
    iOS
     ✓ Xcode - Required for building and installing your app on iOS
     ✓ CocoaPods - Required for installing iOS dependencies
     ● ios-deploy - Required for installing your app on a physical device with the CLI
     ✓ .xcode.env - File to customize Xcode environment
    
    Errors:   0
    Warnings: 1

    Have you done this check inside new project?

  2. SpaghettiC0des commented on Sep 2, 2022

    @SpaghettiC0des
    Author

    @adamTrz , I tried it on 2 projects. Relatively new, but I did not tried it on a fresh project.

    Both projects shows the same watchman version error.

  3. liamjones commented on Sep 6, 2022

    @liamjones
    Contributor

    Might be related to this? #1485

  4. adamTrz commented on Sep 9, 2022

    @adamTrz
    Collaborator

    @karlmarxlopez can you please check if my proposed fix solves your issue? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions