Skip to content

Failed to generate vsproj with scons 4.6.0 #85262

Closed
@charlietsao

Description

@charlietsao

Godot version

4.1.3-stable

System information

Windows 10

Issue description

Scons build succeed. However, scons generate vsproj failed:

> scons p=windows vsproj=yes
scons: Reading SConscript files ...
Auto-detected 16 CPU cores available for build parallelism. Using 15 cores by default. You can override it with the -j argument.
Found MSVC version 14.2, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
KeyError: 0:
  File "E:\fdx\godot\SConstruct", line 971:
    methods.generate_vs_project(env, ARGUMENTS, env["vsproj_name"])
  File "E:\fdx\godot\methods.py", line 780:
    batch_file = find_visual_c_batch_file(env)
  File "E:\fdx\godot\methods.py", line 732:
    return find_batch_file(env, version, host_platform, target_platform)[0]
  File "C:\Users\fdx\AppData\Local\Programs\Python\Python310\lib\site-packages\SCons\Tool\MSCommon\vc.py", line 929:
    vernum = float(get_msvc_version_numeric(msvc_version))
  File "C:\Users\fdx\AppData\Local\Programs\Python\Python310\lib\site-packages\SCons\Tool\MSCommon\vc.py", line 504:
    return ''.join([x for x in msvc_version if x in string_digits + '.'])
  File "C:\Users\fdx\AppData\Local\Programs\Python\Python310\lib\site-packages\SCons\Tool\MSCommon\vc.py", line 504:
    return ''.join([x for x in msvc_version if x in string_digits + '.'])
  File "C:\Users\fdx\AppData\Local\Programs\Python\Python310\lib\site-packages\SCons\Environment.py", line 586:
    return self._dict[key]

Steps to reproduce

  1. Install Visual Studio 2019
  2. run scons p=windows vsproj=yes

Minimal reproduction project

No project, just build.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions