RuntimeError when running fetch on Windows
Created by: janicduplessis
I get this error trying to build react native with buck on Windows. It works fine on my Mac.
I'm using buck from master and python 2.7.11.
C:\Users\janic\Developer\react-native>buck fetch ReactAndroid/src/main/java/com/facebook/react
Not using buckd because watchman isn't installed.
Warning raised by BUCK file parser: Traceback (most recent call last):
Warning raised by BUCK file parser: File "C:\Users\janic\Developer\react-native\buck-out\tmp\buck_run.unzln3\buck1494403354654771159.py", line 2279, in <module>
Warning raised by BUCK file parser: main()
Warning raised by BUCK file parser: File "C:\Users\janic\Developer\react-native\buck-out\tmp\buck_run.unzln3\buck1494403354654771159.py", line 851, in main
Warning raised by BUCK file parser: for section, contents in bser.loads(f.read()).iteritems():
Warning raised by BUCK file parser: File "C:/Users/janic/Developer/buck/third-party/py/pywatchman\pywatchman\pybser.py", line 292, in loads
Warning raised by BUCK file parser: raise RuntimeError('bser data len != header len')
Warning raised by BUCK file parser: RuntimeError: bser data len != header len
Warning raised by BUCK file parser: Traceback (most recent call last):
Warning raised by BUCK file parser: File "C:\Users\janic\Developer\react-native\buck-out\tmp\buck_run.unzln3\buck2963190285078485547.py", line 2279, in <module>
Warning raised by BUCK file parser: main()
Warning raised by BUCK file parser: File "C:\Users\janic\Developer\react-native\buck-out\tmp\buck_run.unzln3\buck2963190285078485547.py", line 851, in main
Warning raised by BUCK file parser: for section, contents in bser.loads(f.read()).iteritems():
Warning raised by BUCK file parser: File "C:/Users/janic/Developer/buck/third-party/py/pywatchman\pywatchman\pybser.py", line 292, in loads
Warning raised by BUCK file parser: raise RuntimeError('bser data len != header len')
Warning raised by BUCK file parser: RuntimeError: bser data len != header len
Parse error for build file C:\Users\janic\Developer\react-native\ReactAndroid\src\main\java\com\facebook\react\BUCK: Parser exited unexpectedly