Bug 241356 - REGRESSION(250081@main): Parsing error in generate-message-receiver.py
Summary: REGRESSION(250081@main): Parsing error in generate-message-receiver.py
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Diego Pino
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-06 19:06 PDT by Diego Pino
Modified: 2022-06-07 00:18 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Pino 2022-06-06 19:06:11 PDT
I got the following stacktrace while building WebKitGTK:

```
Traceback (most recent call last):
  File "/home/dpino/playwright/browser_patches/webkit/checkout/Source/WebKit/Scripts/generate-message-receiver.py", line 92, in <module>
	sys.exit(main(sys.argv))
  File "/home/dpino/playwright/browser_patches/webkit/checkout/Source/WebKit/Scripts/generate-message-receiver.py", line 52, in main
	receiver = webkit.parser.parse(source_file)
  File "/home/dpino/playwright/browser_patches/webkit/checkout/Source/WebKit/Scripts/webkit/parser.py", line 52, in parse
	for line in file:
  File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
	return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 1776: ordinal not in range(128)
```

Debugging the list of parsed files, it seems an extra non-ascii character in "Source/WebKit/Shared/IPCTester.messages.in" caused the parsing error.
Comment 1 Diego Pino 2022-06-06 19:10:13 PDT
Pull request: https://github.com/webkit/webkit/pull/1338
Comment 2 EWS 2022-06-07 00:17:02 PDT
Committed r295334 (251353@main): <https://commits.webkit.org/251353@main>

Reviewed commits have been landed. Closing PR #1338 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-06-07 00:18:13 PDT
<rdar://problem/94500574>