Skip to content

The super long command gives me IndesxError: list index out of range #31

@SkillSageDev

Description

@SkillSageDev

I use windows 11, visuale studio 2022 and windows 11 sdk

The Code:

gn gen out/Release-x64 --args="is_debug=false is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_sfntly=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false target_cpu=""x64"" cc=""clang"" cxx=""clang++"" clang_win=""c:\deps\llvm"" win_vc=""C:\Program Files\Microsoft Visual Studio\2022\Community\VC"" extra_cflags=[""-MT""]"

The Error:

Traceback (most recent call last):
  File "C:/deps/skia/gn/highest_version_dir.py", line 17, in <module>
    print(sorted(filter(regex.match, os.listdir(dirpath)))[-1])
IndexError: list index out of range
ERROR at //gn/BUILDCONFIG.gn:155:25: Script returned non-zero exit code.
    clang_win_version = exec_script("//gn/highest_version_dir.py",
                        ^----------
Current dir: C:/deps/skia/out/Release-x64/
Command: C:/deps/depot_tools/bootstrap-2@3_8_10_chromium_26_bin/python3/bin/python3.exe C:/deps/skia/gn/highest_version_dir.py "c:\deps\llvm/lib/clang" "[0-9]+\.[0-9]+\.[0-9]+"
Returned 1.

The file that encountered the error =>

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions