Skip to content

UUID is not just [A-F0-9]{24} #8

@truebit

Description

@truebit

xUnique Webkit2 project file:

https://github.com/truebit/webkit/raw/master/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj

Error below:

Uniquify and Sort
Uniquify done
Traceback (most recent call last):
  File "./xUnique.py", line 485, in <module>
    main(sys_argv)
  File "./xUnique.py", line 467, in main
    xunique.sort_pbxproj(options.sort_pbx_fn_bool)
  File "./xUnique.py", line 301, in sort_pbxproj
    lines.sort(key=lambda file_str: pbx_key_ptn.search(file_str).group(1))
  File "./xUnique.py", line 301, in <lambda>
    lines.sort(key=lambda file_str: pbx_key_ptn.search(file_str).group(1))
AttributeError: 'NoneType' object has no attribute 'group'

Cause:
Keys contains characters other than A-F:

               1QQ417CB12C00CCA002BE67B /* TextCheckerCompletion.h in Headers */ = {isa = PBXBuildFile; fileRef = C1684239EEDFF3D67034DD5F02609AB2 /* TextCheckerCompletion.h */; };

Fix:
Use [A-Z0-9]{24} for UUID

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions